[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] syntax highlighting doesn't work, nor throws errors.
Mauritz Jeanson wrote: > | -----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. Thank you, it's still not working but I feel like I'm closer. Here's what's wrong now. I still get the same output (no highlighting), but during the transform it says: XSLT Highlighter: Cannot read xslthl-config.xml, no custom highlighters will be available. If I copy and paste the path I gave it into firefox (linux), firefox finds the file fine and displays it. That path is CORRECT! -Dxslthl.config="file:///www/notlive/docbook/xslthldamnit/highlighters/xslthl-config.xml" I also tried giving it the path to the xslthl-config.xml file that comes with the docbook xsl: -Dxslthl.config="file:///www/notlive/docbook/docbook-xsl-1.74.3-pre/highlighting/xslthl-config.xml" \ Which is also a valid path, and I can also cut and paste into firefox (including the "file://" part) and see the file. Still get the error message and no highlighting.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]