beautypg.com

Apple Mac OS X Server (Extending Your Wiki Server For Version 10.5 Leopard) User Manual

Page 28

background image

28

Chapter 1

Customizing How the Wiki Looks

If you edit a copy of the default.xsl file, you must also make copies of all of the XSL files
that include the original default.xsl file, and then change them to include the edited
default.xsl file.

Viewing Dynamic XML

The wiki server dynamically generates XML content, which is called context. Context is
transformed by XSL files into HTML.

Before you view context, familiarize yourself with the XSL files located in:

/usr/share/wikid/lib/apple_templates/

The XSL files correspond to specific pages in the wiki. For example, a group’s wiki
homepage uses grouphome.xsl, while a typical wiki page uses content_entry.xsl. To
view context, create an XSL file that displays context and put it in your theme’s folder.
This overrides the XSL files in /usr/share/wikid/lib/apple_templates/ and changes the
output for the pages that they correspond to.

To view context:

1

Create a plain text file with the following content:


xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
method="html"
version="1.0"
encoding="UTF-8"
indent="yes"
doctype-public="-//W3C//DTD HTML 4.01//EN"
doctype-system="http://www.w3.org/TR/html4/strict.dtd"/>



2

Save the file in this location:

/Library/Application Support/Apple/WikiServer/Themes/theme_name/
Use the same filename as any of the XSL files located in:
/usr/share/wikid/lib/apple_templates/
Choose a filename based on the page with the context you want to view. For
example, to view the context for the group’s wiki homepage, change the filename to
grouphome.xsl.