- From: Norman Walsh <ndw@nwalsh.com>
- Date: Wed, 22 Jul 2009 08:55:44 -0400
- To: public-xml-processing-model-comments@w3.org
- Message-ID: <m263dkop0v.fsf@nwalsh.com>
"Toman_Vojtech@emc.com" <Toman_Vojtech@emc.com> writes:
>> <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.
I changed the first sentence to read:
A p:xpath-context element specifies the context node against which...
^^^^
And added the following paragraph:
<para>The <tag>p:xpath-context</tag> element only provides the
context node. The namespace bindings, in-scope variables, and other
aspects of the context come from the element on which the XPath
expression occurs.</para>
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | Many ideas grow better when
http://nwalsh.com/ | transplanted to another mind than in
| the one where they sprang up.--Oliver
| Wendell Holmes
Received on Wednesday, 22 July 2009 12:56:28 UTC