Re: [xml] Big clean up in XPath

Date view Thread view Subject view Author view

From: TOM (ptittom@free.fr)
Date: Fri Oct 27 2000 - 22:42:10 EDT


On 28/10/2000 02:29:30 TOM wrote:
> > > > > - doesn't seem there is a namespace support for functions
[...]
> > Hum, this affects variables too (sounds logical but ...) ?
>
> Yes since VariableReferences also are QNames:
> [36] VariableReference ::= '$' QName
> It's not explicitly expressed though.

Actually it is (XPath Recommandation, section 2.3 Node Tests):
   It is a error it the QName has a prefix for which there is no
   namespace declaration in the expression context.
Thus, true() and my:true() are different functions, that's not currently
the case with libxml.
It sounds like we'll have to add some kind of namespace
declaration/lookup within the XPath contexts in addition with the namespaces field of
xmlXPathContext used for the namespace axis traversal. Maybe I'm wrong, it's
being late (4:40AM) ;o)

Tom

----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Fri Oct 27 2000 - 22:43:37 EDT