OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] Colored listings

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:
<!-- xsl:param name="hyphenate">true</xsl:param -->

 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"^
 highlight.xslthl.config="file:///F:/work/docbook-tools/highlighting/xslthl-config.xml" ^

%~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.html

RL> 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

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]