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:
1Create a plain text file with the following content:
<?xml version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output
method="html"
version="1.0"
<xsl:template match="page">
</xsl:template>
</xsl:stylesheet>
2Save 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.
28