Specifications
Chapter 3 Customizing How the Wiki Looks 51
The rst argument (this.startedEditing above) is the callback function that is run
when the message is received.
The second argument (DID_START_EDITING above) is the name of the message that
the function listens for.
Add your own code to dene the callback function (startedEditing above).
About XSL
XSL denes XML document transformation and presentation. For information about
XSL, see www.w3.org/Style/XSL/.
The wiki server uses a set of XSL les located at:
/usr/share/wikid/lib/apple_templates/
Because a software update can overwrite les in /usr/share/wikid/lib/apple_templates/,
edit the copies of these XSL les located in:
/Library/Application Support/Apple/WikiServer/Themes/theme_name/
XSL les in this location override XSL les in /usr/share/wikid/lib/apple_templates/.
If a software update overwrites the les in /usr/share/wikid/lib/apple_templates/, you
must manually merge the changed contents of your customized XSL les with the
updated XSL les. If you don’t merge the contents, the versions won’t match and an
error will occur.
If you edit a copy of the default.xsl le, you must also make copies of all XSL les
that include the original default.xsl le and then change them to include the edited
default.xsl le.
Viewing Dynamic XML
The wiki server dynamically generates XML content, which is called context. Context is
transformed by XSL les into HTML.
Before you view context, familiarize yourself with the XSL les located in:
/usr/share/wikid/lib/apple_templates/
The XSL les correspond to specic 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 le that displays context and put it in your theme’s
folder. This overrides the XSL les in /usr/share/wikid/lib/apple_templates/ and
changes the output for the pages that they correspond to.