0
<xsl:for-each select="//detailoption | //systemnotes">
  <xsl:if test="normalize-space(@id)!=''">~</xsl:if>
</xsl:for-each>

This loops runs for short iterations. But when the iteration increases the entire XSL fails to transform and throw an error.

SystemId Unknown; Line #0; Column #0; java.lang.ArrayIndexOutOfBoundsException

Is there any range limitations for variable data in XSL? Is there any solution to overcome this problem?

Xalan 2.7.0 . Is there any way to find the more details of it.
Our current coding is:

TransformerFactory factory = TransformerFactory.newInstance();
factory.setURIResolver(createURIResolver()); 
Templates template = factory.newTemplates(xslIn); 
Transformer xformer = template.newTransformer(); 
ByteArrayOutputStream byteStream = new ByteArrayOutputStream();
OutputStream hndWrite = byteStream;
Result result = new javax.xml.transform.stream.StreamResult(hndWrite); 
xformer.transform(xmlIn, result)
Lukas Eder
  • 211,314
  • 129
  • 689
  • 1,509
arvindwill
  • 1,960
  • 1
  • 23
  • 39
  • What library (and version) are you using? Xalan? – Lukas Eder Jul 13 '11 at 10:06
  • 1
    About limitations questions, I think is important including details such as xslt processor used, xslt version, environment, ... – Emiliano Poggi Jul 13 '11 at 10:07
  • Xalan 2.7.0 . Is there any way to find the more details of it. Our current coding is TransformerFactory factory = TransformerFactory.newInstance(); factory.setURIResolver(createURIResolver()); Templates template = factory.newTemplates(xslIn); Transformer xformer = template.newTransformer(); ByteArrayOutputStream byteStream = new ByteArrayOutputStream(); OutputStream hndWrite = byteStream; Result result = new javax.xml.transform.stream.StreamResult(hndWrite); xformer.transform(xmlIn, result); – arvindwill Jul 13 '11 at 10:14

1 Answers1

0

I suggest you upgrade your Xalan to 2.7.1, and then try again. There had been several performance improvements and bugfixes. See the release notes on JIRA here:

https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=10584&version=10863

See also some benchmarks I recently did. An average benchmark was 2x faster with Xalan 2.7.1, rather than with 2.7.0:

Java XPath (Apache JAXP implementation) performance

Community
  • 1
  • 1
Lukas Eder
  • 211,314
  • 129
  • 689
  • 1,509