Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3
    • Labels:
      None

      Description

      Checking test (Issue172_CountAttributeNode) I came with the following fix for the code in AttributeContext line 72
      from


      if (!(nodeTest instanceof NodeNameTest))

      { return false; }

      QName name = ((NodeNameTest) nodeTest).getNodeName();

      ------
      '
      to
      — (outside method)
      private static final QName WILDCARD = new QName("", "*");
      — (in method)

      final QName name ;
      if (nodeTest instanceof NodeTypeTest)
      {
      if (((NodeTypeTest) nodeTest).getNodeType() == Compiler.NODE_TYPE_NODE)
      name = WILDCARD;
      else return false;
      }
      else if (nodeTest instanceof NodeNameTest) {
      name = ((NodeNameTest) nodeTest).getNodeName();
      }
      else
      {
      return false;
      }

        Activity

        Hide
        Michele Vivoda added a comment -

        Test case:

        xpath

        //attribute::node()

        xml

        <xml foo='bar'/>

        Show
        Michele Vivoda added a comment - Test case: xpath //attribute::node() xml <xml foo='bar'/>
        Hide
        Matt Benson added a comment -

        committed a similar change; rev 617942.

        Show
        Matt Benson added a comment - committed a similar change; rev 617942.
        Hide
        Matt Benson added a comment -

        Plus even a bit more similar in rev 617943.

        Show
        Matt Benson added a comment - Plus even a bit more similar in rev 617943.

          People

          • Assignee:
            Unassigned
            Reporter:
            Michele Vivoda
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development