Hello Larry,
As I understand, there is no way to use syntax highlighting with
xsltproc, it's requres Saxon. Next, Saxon itself does not process
XInclude's, and I need to use xmllint to do this.
Also, saxon need the F:\work\docbook-tools\docbook-xsl\fo\F:\work\docbook-tools\docbook-xsl\fo\param.xsl
to be fixed on line 336 as below:
So I try next:
xmllint --xinclude dlc.xml >dlc_.xml
call mkpdf.bat dlc_.xml
------ mkpdf.bat ---------
java -cp "F:\work\docbook-tools\syntax-hl\xslthl-2.0.1.jar;F:\work\docbook-tools\syntax-hl\saxonhe9-2-0-6j\saxon9he.jar"^
net.sf.saxon.Transform^
-o:%~dpn2.fo^
-s:%1^
-xsl:%~dp0\..\docbook-xsl\fo\docbook.xsl^
highlight.xslthl.config="file:///F:/work/docbook-tools/highlighting/xslthl-config.xml" ^
use.extensions=1^
textinsert.extension=1^
highlight.source=1
%~dp0\..\fop\fop.bat -c %~dp0\..\fop\conf\fop.xconf -fo %~dpn2.fo -pdf %2
----------------------------
But listings are still black and white. I'm looking in generated .fo
and found that there is no differences with xsltproc generated .fo.
What I'm doing wrong?
Monday, April 12, 2010, 9:56:56 PM, you wrote:
RL> Marty,
RL> Bob Statyton has a good discussion of program listings:
RL>
http://www.sagehill.net/docbookxsl/ProgramListings.htmlRL> There is a section on syntax highlighting (which differentiates
RL> among things like keywords, constants, and parameters) at the bottom of the ToC on this page.
RL> Regards,
RL> Larry Rowland