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 2002/06/21 22:18:19 UTC
DO NOT REPLY [Bug 10137] New: -
xsltc Running xalan on variable53
<?xml version="1.0" encoding="UTF-8"?>
<out>a b c d k l m n w x y z </out>
Running XSLTC with Xerces Parser on variable53
<?xml version="1.0" encoding="UTF-8"?>
<out>a a a a a a a a a a a a </out>
glrr 1014 =>car variable53.xsl
car: Command not found.
glrr 1015 =>cat variable53.xsl
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transformxsltc fails test variable53 on recursion to traverse node set in a variable
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=10137>.
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=10137
xsltc Running xalan on variable53
<?xml version="1.0" encoding="UTF-8"?>
<out>a b c d k l m n w x y z </out>
Running XSLTC with Xerces Parser on variable53
<?xml version="1.0" encoding="UTF-8"?>
<out>a a a a a a a a a a a a </out>
glrr 1014 =>car variable53.xsl
car: Command not found.
glrr 1015 =>cat variable53.xsl
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transformxsltc fails test variable53 on recursion to traverse node set in a variable
Summary: xsltc Running xalan on variable53 <?xml version="1.0"
encoding="UTF-8"?> <out>a b c d k l m n w x y z </out>
Running XSLTC with Xerces Parser on variable53 <?xml
version="1.0" encoding="UTF-8"?> <out>a a a a a a a a a
a a a </out> glrr 1014 =>car variable53.xsl car:
Command not found. glrr 1015 =>cat variable53.xsl <?xml
version="1.0"?> <xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transformxsltc
fails test variable53 on recursion to traverse node set
in a variable
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
This has been around for a long time. Since it hasn't gone away on its
own, I'm putting in a bug to address it. See also bug 3238
Expected output
---------------
<?xml version="1.0" encoding="UTF-8"?>
<out>a b c d k l m n w x y z </out>
Obtained output
---------------
<?xml version="1.0" encoding="UTF-8"?>
<out>a a a a a a a a a a a a </out>
XSL
---
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- FileName: variable53 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 11.6 -->
<!-- Author: John Howard -->
<!-- Purpose: test using recursion to traverse a node-set in a variable. -->
<xsl:output method="xml"/>
<xsl:template match="/">
<out>
<xsl:call-template name="traverse-vals">
<xsl:with-param name="pos" select="1"/>
</xsl:call-template>
</out>
</xsl:template>
<xsl:template name="traverse-vals">
<xsl:param name="pos"/>
<xsl:variable name="series" select="/data/*/datum/@value"/>
<xsl:value-of select="concat($series[number($pos)],' ')"/>
<xsl:if test="$pos < count($series)">
<xsl:call-template name="traverse-vals">
<xsl:with-param name="pos" select="$pos + 1"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
XML
---
<?xml version="1.0"?>
<data>
<foodata>
<datum value="a"/>
<datum value="b"/>
<datum value="c"/>
<datum value="d"/>
</foodata>
<bardata>
<datum value="k"/>
<datum value="l"/>
<datum value="m"/>
<datum value="n"/>
</bardata>
<bazdata>
<datum value="w"/>
<datum value="x"/>
<datum value="y"/>
<datum value="z"/>
</bazdata>
</data>