Archive
Posts Tagged ‘XSL’
Using your own custom stylesheet for HTML export
September 19, 2009
1 comment
For exporting your observations into HTML, Observation Manager uses XSL-Transformation. The default style sheet used for this might not perfectly fit to your webpage, or you simply don’t like the transformed output. Therefore with OM 0.820 you can make use of your own XSL style sheet.

Create new folder for your custom XSL style sheet
Open your Observation Manager installation directory and goto the /xsl folder. Underneath this folder you can see the default style sheet used for transformation called /oal2html. Now place a second folder besides the existing one, e.g. /myWebpageStyle. Now add your XSL file to this folder. The XSL file must be called transform.xsl (or in case you’ve one XSL file per language, name the files e.g. transform_de.xsl, transform_en.xsl and so on)
(The best way to start with your own XSL file might be by copying an existing one from /oal2html folder.)
Now start Observation Manager, and select Preferences out of the menu bar.
In the General tab, see the XSL style entry. Select your custom style here (the name shown in the preferences dialog is taken from the folder you’ve created underneath the /xsl folder.

Select your custom XSL style sheet
You’re done! Next time you’ll export your observation data into HTML, Observation Manager will use your XSL style sheet for transformation.
Recent Comments