Bizarre XSL Problem [message #91914] |
Thu, 07 August 2003 06:18 |
James Bradburn
Messages: 4 Registered: November 2001
|
Junior Member |
|
|
I have a problem with the following XSL style sheet
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
<xsl:template match="/">
<equity1>
<errors/>
<xsl:for-each select="rmlResults/errorList/error">
<error>
<description>
<xsl:value-of select="description"/>
</description>
</error>
</xsl:for-each>
<xsl:for-each select="rmlResults/runAnalysis/statResults/statResult">
<xsl:sort select="statisticName" data-type="text" order="ascending" />
<xsl:sort select="drilldownName" data-type="text" order="ascending" />
<statName><xsl:value-of select="statisticName" /></statName>
<ddName><xsl:value-of select="drilldownName" /></ddName>
</xsl:for-each>
</equity1>
</xsl:template>
</xsl:stylesheet>
The use of two sort tags causes dbms_xslprocessor.processxsl to return an error on transforming a well formed XML source document. Removing either of the sorts stops the error message from appearing.
Has anyone seen this problem, surely XML support in Oracle 9i Release 2 (9.2.0.3) supports multiple sorts?
The error is:
ORA-31011 XML parsing failed
ORA-19202 Error occurred in XML processing
LPX-00302 Incorrect stylesheet. The node is not valid.
ORA-06512 @ etc etc...
Thanks very much to anyone who can shed light on this issue.
James Bradburn
|
|
|
|