[xsl] Alternative to XSLTHL?

Subject: [xsl] Alternative to XSLTHL?
From: Jacek Iwanski <jiva@xxxxxxx>
Date: Mon, 10 May 2010 22:42:43 +0200

  I need to highlight source code blocks, mostly PHP and JavaScript, while
  transforming to HTML and PDF.
  XML source is DITA, using pasted snippets within <codeblock> element.

  I'd rather import another stylesheet into existing framework than use external Java library.

  My question is whether it is possible to rewrite such package as XSLTHL in pure
  XSLT 2.0, using similar "highlighters" defined in XML.

  There is a DITA-OT plugin (dita.ot.plugins.highlight), but it is dependent on
  XSLTHL (and Ant) and wouldn't even build demo.

Best regards,

Current Thread