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

preceding axis contains nodes for namespace declaration

    XMLWordPrintableJSON

Details

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

    Description

      For each namespace declaration and the default xml namespace there is a node in
      the preceding axis but the preceding axis must not contain any namespace or
      attribute nodes.

      Example with ApplyXPath:

      text.xml:
      <?xml version="1.0"?>
      <a xmlns="urn:x" xmlns:y="urn:y"><b/><c/></a>

      command line:
      ApplyXPath test.xml //*[local-name()='c']/preceding::node()

      output:
      Loading classes, parsing test.xml, and setting up serializer
      Querying DOM using //*[local-name()='c']/preceding::node()
      <output>
      urn:x
      urn:y
      http://www.w3.org/XML/1998/namespace
      <b/>
      </output>

      expected output:
      Loading classes, parsing test.xml, and setting up serializer
      Querying DOM using //*[local-name()='c']/preceding::node()
      <output>
      <b/>
      </output>

      distribution:
      xalan-j_2_3_1-bin.zip

      Attachments

        Activity

          People

            keshlam@us.ibm.com Joe Kesselman
            ms@ebdac.de Christian Hagenah
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: