xml-xalan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 27429] New: - last() breaks nodeset position
Date Thu, 04 Mar 2004 10:44:54 GMT
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=27429>.
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=27429

last() breaks nodeset position

           Summary: last() breaks nodeset position
           Product: XalanJ2
           Version: CurrentCVS
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Xalan
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: puckman@taglab.com


This might be a dupe of #22949, but I'm not sure.

My XML is:
  <xml>
    <section name="name1">
      <section name="name2"></section>
      <section name="name3"></section>
    </section>
  </xml>

My transform does a:

  <xsl:apply-templates select="section | section/section"/>
...
  <xsl:template match="section">
    <xsl:value-of select="position()"/> - <xsl:value-of select="last()"/>
  </xsl:template>


The 'last()' call seems to upset the current position in the nodeset and only the first section
will match.

Will attach my test JSTL transform.

Mime
View raw message