DO NOT REPLY [Bug 24023] - No setDefaultNamespace

[email protected]
Newsgroups gmane.text.xml.xindice.devel
Message-ID <[email protected]>
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=24023>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=24023


[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX




------- Additional Comments From [email protected]  2006-10-10 18:23 -------
XPath specification prohibits remapping of default namespace:

[quote] This is the same way expansion is done for element type names in start
and end-tags except that the default namespace declared with xmlns is not used:
if the QName does not have a prefix, then the namespace URI is null (this is the
same way attribute names are expanded). [/quote]

See http://www.w3.org/TR/xpath#node-tests

To query xml elements with empty prefix, such as:

  <foo xmlns="http://www.bar.com"/>

XPath expression should map "http://www.bar.com" namespace to non-empty prefix:

  ./xindice xpath -c /db/test -s ns=http://www.bar.com -q /ns:foo


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.