> On 24 Nov 2016, at 11:03, Jernej Tuljak <[email protected]> wrote:
>
>> -----Original Message-----
>> From: netmod [mailto:[email protected]] On Behalf Of Ladislav
>> Lhotka
>> Sent: Thursday, November 24, 2016 10:14 AM
>> To: NETMOD WG <[email protected]>
>> Subject: [netmod] default namespace in XPath
>>
>> Hi,
>>
>> second bullet in sec. 6.4.1 of RFC 7950 says:
>>
>> Names without a namespace prefix belong to the same namespace as the
>> identifier of the current node.
>>
>> But what is the current node? Is it the same as the result of the
>> current() function or, if we have
>
> I read it as the result of current(). It doesn't say "current XPath context
> _node set_".
Yes, that's my interpretation, too, so the text should say "initial context
node" rather than "current node". But even then I don't know how to handle a
choice that appears at the top level of a module, for example
choice foo {
when "/bar";
...
}
In this case the initial context node for the XPtah is the root node that,
according to XPath 1.0, has no expanded-name, i.e. no namespace either. So
there is no default namespace to assign to "bar".
Lada
>
> Jernej
>
>>
>> "/x:foo/bar"
>>
>> is the namespace of "bar" the one corresponding to prefix "x"?
>>
>> Lada
>>
>> --
>> Ladislav Lhotka, CZ.NIC Labs
>> PGP Key ID: E74E8C0C
>>
>>
>>
>>
>> _______________________________________________
>> netmod mailing list
>> [email protected]
>> https://www.ietf.org/mailman/listinfo/netmod
>
--
Ladislav Lhotka, CZ.NIC Labs
PGP Key ID: E74E8C0C
_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod