Anakia
  1. Anakia
  2. ANAKIA-4

Setting xpath namespace bindings?

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Code
    • Labels:
      None
    • Environment:
      Operating System: other
      Platform: Other

      Description

      Apologies in advance if I'm missing something, but I cannot see any way to
      declare the namespace declarations that I want to use when evaluating an xpath
      in a template. Unless my entire document is in no namespace, I seem to be out
      of luck.

      For example, if I have a document

      <foo xmlns='bar.com'><baz/></foo>

      I can't evaluate something like

      $root.selectNodes("myns:baz")

      without a way to map 'myns' to 'bar.com' in the xpath context.

        Activity

        Patrick Calahan created issue -
        Jeff Turner made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 21957 12315064
        Henning Schmiedehausen made changes -
        Assignee Velocity-Dev List [ velocity-dev@jakarta.apache.org ]
        Henning Schmiedehausen made changes -
        Key VELOCITY-194 ANAKIA-4
        Affects Version/s 1.3.1 [ 12310251 ]
        Component/s Anakia [ 12310211 ]
        Project Velocity [ 12310104 ] Anakia [ 12310632 ]
        Henning Schmiedehausen made changes -
        Issue Type Bug [ 1 ] New Feature [ 2 ]
        Component/s Code [ 12311713 ]
        Priority Major [ 3 ] Minor [ 4 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Patrick Calahan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development