W3C home > Mailing lists > Public > public-xml-processing-model-comments@w3.org > July 2009

RE: XPath context...

From: <Toman_Vojtech@emc.com>
Date: Wed, 22 Jul 2009 02:28:54 -0400
Message-ID: <6E216CCE0679B5489A61125D0EFEC787103EDB0F@CORPUSMX10A.corp.emc.com>
To: <public-xml-processing-model-comments@w3.org>
>   <p:choose>
>     <p:xpath-context xmlns:foo="http://www.foo.com"/>
>     <p:when test="/foo:document/bar:title" 
> xmlns:bar="http://www.bar.com">
> 
> That's not what xpath-context means. (And I fear it's too late to
> change its name.)
> 
> XPath context establishes the context *node* for XPath expressions.
> The namespace context always comes from the node on which the XPath
> expression occurs.

OK, that makes sense. I was wondering about the namespace context, too.
(Actually, one of the reasons why I have added the test was to see
whether I understood it right or not... :)

Perhaps section 4.4.1 (p:xpath-context) could be more explicit the
namespace context.

Regards,
Vojtech
Received on Wednesday, 22 July 2009 06:30:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 22 July 2009 06:30:53 GMT