In the XML I have a codeblock like:
<codeblock outputclass="language-css"> <p padding-left="20">....</codeblock>
which was marked by accident to be parsed using the XSLTHL CSS token marker although it contains XML, when applying the XSLT we obtain:
[xslt] java.lang.NullPointerException
[xslt] at net.sf.xslthl.highlighters.NumberHighlighter.startsWith(NumberHighlighter.java:138)
[xslt] at net.sf.xslthl.MainHighlighter.highlight(MainHighlighter.java:100)
[xslt] at net.sf.xslthl.ConnectorSaxonEE.highlight(ConnectorSaxonEE.java:116)
[xslt] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Guarded NPE + added TC