W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2007

Re: XPathNSResolver issues

From: <keshlam@us.ibm.com>
Date: Thu, 11 Oct 2007 13:19:37 -0400
To: Joćo Eiras <joao.eiras@gmail.com>
Cc: "www-dom@w3.org" <www-dom@w3.org>, www-dom-request@w3.org
Message-ID: <OF8F750CE8.EA57C9CF-ON85257371.005F0D12-85257371.005F2E47@lotus.com>
Correct behavior.

XPath 1.0 has no concept of default namespace. If you want to reference
namespaced nodes you MUST use a prefix in your XPath and bind it
appropriately.

XPath 2.0 adds the concept of default namespace, but I don't believe the
DOM APIs support that yet.

______________________________________
"... Three things see no end: A loop with exit code done wrong,
A semaphore untested, And the change that comes along. ..."
  -- "Threes" Rev 1.1 - Duane Elms / Leslie Fish
(http://www.ovff.org/pegasus/songs/threes-rev-11.html)
Received on Thursday, 11 October 2007 17:34:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:58 GMT