I'm using XSQL to produce XML that is parsed by the below stylesheet, and getting this error:
Invalid instantiation of 'Attribute'
in 'Element' context
It works fine if my XSQL Servlet does not transform the XML. On the other hand, the same XML/XSL works fine using both Microsoft parsers as well as Xalan-J. It's like the servlet just stops outputting/parsing the document when it reaches ~ 49K, and then dumps the below XML.
-- AttributesToElements.xsl --
<?xml version="1.0"?>
<!-- This style sheet takes an Oracle tag heavy ROWSET
and converts it to attributes of a single ROW. -->
<!-- For instance, this source document:
- <ROWSET>
- <ROW num="11">
<BILLTO>1</BILLTO>
<INVOICENUMBER>0001</INVOICENUMBER>
</ROW>
</ROWSET>
-->
<!-- is converted to this document:
- <ROW num="1" BILLTO="11" INVOICENUMBER="0001">
-->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:jstr="http://www.oracle.com/XSL/Transform/java/java.lang.String">
<!-- <xsl:output method="xml" indent="yes"/> -->
<xsl:preserve-space elements="*"/>
<xsl:template match="/">
<!--
//-->
<xsl:variable name="str1" select=_
Long postings are being truncated to ~1 kB at this time.
_