Uploaded image for project: 'Anakia'
  1. Anakia
  2. ANAKIA-4

Setting xpath namespace bindings?

    Details

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

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              apache-biz@pcal.net Patrick Calahan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: