You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/10/15 21:55:21 UTC
DO NOT REPLY [Bug 4178] New: -
xsltc fails conf test variable50 with nodes out of order
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4178>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4178
xsltc fails conf test variable50 with nodes out of order
Summary: xsltc fails conf test variable50 with nodes out of order
Product: XalanJ2
Version: CurrentCVS
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: org.apache.xalan.xsltc
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: tom.amiro@sun.com
Here's a test session showing that XSLTC disagrees with Saxon, XT, and Xalan.
See the xml file below. It looks like the text() nodes are not being ouput in
the document order abc.
Running saxon on variable50
<?xml version="1.0" encoding="utf-8"?><out>a
b
c
</out>
Running xt on variable50
<?xml version="1.0" encoding="utf-8"?>
<out>a
b
c
</out>
Running xalan on variable50
<?xml version="1.0" encoding="UTF-8"?>
<out>a
b
c
</out>
Running XSLTC with Xerces Parser on variable50
<?xml version="1.0" encoding="UTF-8" ?>
<out>a
c
b
</out>
variable50.xsl
--------------
<?xml version='1.0'?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- FileName: variable50 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 11.2 -->
<!-- Author: Scott Boag -->
<!-- Purpose: Ensure that we can find descendants of the nodes
in a node-set stored in a variable. -->
<xsl:template match="/">
<out>
<xsl:variable name="in" select="*/p"/>
<xsl:for-each select="$in//text()">
<xsl:value-of select="."/><xsl:text> </xsl:text>
</xsl:for-each>
</out>
</xsl:template>
</xsl:stylesheet>
variable50.xml
--------------
<?xml version="1.0"?>
<doc><p>a<b>b</b>c</p></doc>