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=3685>.
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=3685

           Summary: xsltc fails conf test variable53
           Product: XalanJ2
           Version: 2.0.0
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan.xsltc
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Running saxon on variable53
<?xml version="1.0" encoding="utf-8"?><out>a b c d k l m n w x y z </out>

Running xt on variable53
<?xml version="1.0" encoding="utf-8"?>
<out>a b c d k l m n w x y z </out>

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>k l m n </out>

 glrr 56 =>cat variable53.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 &lt; 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> glrr 57 =>cat variable53.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>

Reply via email to