| -----Original Message-----
| From: Mike
|
| I'm following the instructions here to make syntax
| highlighting work,
| are these the wrong instructions to follow?
|
| http://www.sagehill.net/docbookxsl/SyntaxHighlighting.html
That documentation is not completely up-to-date, unfortunately.
| java -cp
| "/www/notlive/docbook/docbook-xsl-1.74.3-pre/extensions/saxon
65.jar:/www/notlive/docbook/saxondamnit/saxon.jar:/www/notlive/docbook/xslth
ldamnit/xslthl-2.0.1.jar"
| \
| -Dhighlight.source=1 \
Here you pass highlight.source=1 as a Java system property, but that won't
work since it is an XSLT parameter. But you also added it as parameter in
chunkohp.xsl, so that's OK.
| -Dxslthl.config="file:///www/notlive/docbook/xslthldamnit/hig
| hlighters/xslthl-config.xml"
| \
| com.icl.saxon.StyleSheet ./text.xml
| /www/notlive/docbook/docbook-xsl-1.74.3-pre/html/chunkohp.xsl
There are some changes in DocBook-XSL 1.74.3 that haven't been properly
announced and documented yet. This is what's needed to use the syntax
higlighting extension:
1. Use a processor that works with the extension: Saxon 6 or Xalan-J.
2. Add the latest version of xslthl-2.X.X.jar to your classpath.
3. Set the highlight.source parameter to 1.
4. Import two stylesheet modules, highlighting/common.xsl and either
html/highlight.xsl (for HTML output) or fo/highlight.xsl (for FO output),
into your customization layer.
So you need to fix item 4.
Mauritz