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
java -cp
"/www/notlive/docbook/docbook-xsl-1.74.3-pre/extensions/saxon65.jar:/www/notlive/docbook/saxondamnit/saxon.jar:/www/notlive/docbook/xslthldamnit/xslthl-2.0.1.jar"
\
-Dhighlight.source=1 \
-Dxslthl.config="file:///www/notlive/docbook/xslthldamnit/highlighters/xslthl-config.xml"
\
com.icl.saxon.StyleSheet ./text.xml
/www/notlive/docbook/docbook-xsl-1.74.3-pre/html/chunkohp.xsl
I've also tried without the "saxon65.jar" in there. also the
-Dhighlight.source=1 \ was a recent attempt to get it to work, so I've
tried without that too.
here's my text.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<?altova_sps http://www.altova.com/sps/Template/Publishing/docbook.sps?>
<book>
<title>Book Title</title>
<part>
<title>Part Title</title>
<chapter>
<title>Chapter Title</title>
<sect1>
<title>Section1 Title</title>
<para>Text</para>
<programlisting language="php"><![CDATA[
function dostuff($now=false) {
if ($this->redo && !$force) return;
$this->redo=true;
foreach ($this->abas $r=> $a) {
$a->dostuff($force);
}
}
]]></programlisting>
</sect1>
</chapter>
</part>
</book>
My chunkohp.xsl file is the same as chunk.xsl except I added
<xsl:param name="highlight.source" select="1"/>
after
<xsl:import href="chunk-common.xsl"/>
I get html output with no syntax highlighting. Saxon 6.5.5.
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org