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

Examining not set attribute with != gives empty list

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Incomplete
    • 2.2.0
    • None
    • XPath
    • None
    • Operating System: Windows NT/2K
      Platform: PC
    • 6572

    Description

      I think there is a bug in the newest version of xalan 2.0:

      <xsl:for-each select="preceding-sibling:[@class!='list']">

      seems to return no itemes with this:

      <p>List 1</p>
      <p class="list">1</p>
      <p class="list">2</p>
      <p class="list">3</p>
      <p class="list">4</p>
      <p class="list">5</p>
      <p class="list">6</p>
      <p>List 2</p>
      <p class="list">1</p>
      <p class="list">2</p>
      <p class="list">3</p>

      If you need I can send the complete XML and XSL files

      Thank you

      Attachments

        Activity

          People

            Unassigned Unassigned
            bernhard.maehr@gmx.at Bernhard Mähr
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: