Re: XML::LibXML XPath fails to find xmlns:xml="http://www.w3.org/XML/1998/namespace"

Aristotle Pagaltzis <[email protected]>
Newsgroups gmane.comp.lang.perl.xml
Message-ID <[email protected]>
* Emmanuel Rodriguez <[email protected]> [2008-12-29 11:00]:
> I think that this "bug" is a border line case as the prefix
> 'xml' is  reserved in the XML specification.

It’s not just reserved, but the XML namespace is in fact
implicitly associated with that prefix too. Basically, the
declaration you have explictly written into your document is
implicitly present in *all* documents automatically. Therefore
the `namespace:*` expression would have to *always* return that
prefix, no matter if it was explicitly declared in the document
or not.

I don’t think that’s what you want either.

Question: why do you care about this? You shouldn’t have to. If
you care about it it must be either because you are using broken
software (unfortunately we all have to deal with that all too
often – in which case maybe we can suggest something) or because
you are about to *write* broken software (in which case I’d
prefer we get you to reconsider :-) ).

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>
_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
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.