Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-925

position() function always returns 0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 2.0.0
    • None
    • XPath
    • None
    • Operating System: Windows NT/2K
      Platform: PC
    • 7435

    Description

      for the following xml file:

            • test.xml ****
              <?xml version="1.0"?>
              <test>
              <hello>
              <bye>
              </bye>
              </hello>
              </test>

      when running the xtags taglibs that use xalan in the following manner:

            • test.jsp ****
              <xtags:parse uri="test.xml" />
              <xtags:stylesheet>
              <xtags:template match="hello|bye">
              position:<xtags:valueOf select="position()"/><br>
              </xtags:template>
              </xtags:stylesheet>
            • output ****
              position:0<br>

      Attachments

        Activity

          People

            Unassigned Unassigned
            avolcoff@bigfoot.com Ari Volcoff
            Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: