You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by bu...@apache.org on 2006/10/11 03:23:37 UTC
DO NOT REPLY [Bug 24023] - No setDefaultNamespace
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
vgritsenko@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
------- Additional Comments From vgritsenko@apache.org 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.