On 4 June 2012 20:32, Wilhelm Meier <[email protected]> wrote: > Hi, > > please apologize this newbie question but I can't find the answer googling: > > is there a way to use a syntax-highlighter for pdf-output with the > docbook->xsltproc->fop toolchain? > > I found that all code is enclosed in the docbook-progammlisting tag and so I > don't see any possibility to make xsl-transformations here. > > Any hints? HI,
The docbook toolchains do their own highlighting of the contents of the programlisting tag there is no way to use source-highlight. Dblatex does some highlighting, I don't know what it uses (best guess something in Latex) or how customisable it is. The XLST stylesheets that generate FO for FOP do no highlighting by default. There is a README in the docbook-xsl/highlighting that says: "To use the syntax higlighting extension with DocBook-XSL 1.74.3+, you must: 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 into your customization one of the following stylesheet module: * html/highlight.xsl * xhtml/highlight.xsl * xhtml-1_1/highlight.xsl * fo/highlight.xsl 5. Use that customiztion layer. Note: Saxon 8.5 or later is also supported, but since it is an XSLT 2.0 processor it is not guaranteed to work with DocBook-XSL in all circumstances. " Never tried it so can't help any further. Cheers Lex > > -- > Wilhelm > > -- > You received this message because you are subscribed to the Google Groups > "asciidoc" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/asciidoc?hl=en. > -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/asciidoc?hl=en.
