<xsl:for-each select="//detailoption | //systemnotes">
<xsl:if test="normalize-space(@id)!=''">~</xsl:if>
</xsl:for-each>
このループは短い反復で実行されます。しかし、繰り返しが増えると、XSL 全体が変換に失敗し、エラーがスローされます。
システム ID が不明です。行番号 0; 列 #0; java.lang.ArrayIndexOutOfBoundsException
XSL の変数データに範囲制限はありますか? この問題を克服する解決策はありますか?
Xalan 2.7.0 . それの詳細を見つける方法はありますか。
現在のコーディングは次のとおりです。
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)