Attempt to highlight the following incomplete fragment of XML
<xsl:for-each-group select =
fails with the following:
java.lang.StringIndexOutOfBoundsException: String index out of range: 28
at java.lang.String.charAt(Unknown Source)
at net.sf.xslthl.CharIter.current(CharIter.java:151)
at net.sf.xslthl.highlighters.XMLHighlighter.readTagContent(XMLHighlight
er.java:189)
at net.sf.xslthl.highlighters.XMLHighlighter.highlight(XMLHighlighter.ja
va:341)
at net.sf.xslthl.MainHighlighter.highlight(MainHighlighter.java:146)
@kosek I added a fix for the issue + test case.
Thanks for resolving the issue. However the problem still persists. I just checked out current trunk revision 167 having no luck using it. Consider the following snippet:
The
@language
attribute refers to Docbookhighlighting
distribution's sub directory included into the transformation byxslthl-config.xml
. The related transformation fails:You seem to have added a separate issue for your unhandled exception and it is not related with this current issue:
https://sourceforge.net/p/xslthl/bugs/14/
I comitted a fix also for that issue, but I did not look at your attached patch, if you have another idea about how to make this work maybe we can talk on that issue.