> On 24 Nov 2016, at 14:46, Jernej Tuljak <[email protected]> wrote:
> 
>> -----Original Message-----
>> From: Ladislav Lhotka [mailto:[email protected]]
>> Sent: Thursday, November 24, 2016 11:52 AM
>> To: Jernej Tuljak <[email protected]>
>> Cc: NETMOD WG <[email protected]>
>> Subject: Re: [netmod] default namespace in XPath
>> 
>> 
>>> 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". 
> 
> I agree.
> 
>> 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".
> 
> Good catch. There should be an errata for this. I don't think there's a 
> simple fix though.

A prudent fix would be to get rid of this default namespace altogether, as it 
also makes namespace resolution so damn difficult.

Fast rewind right after IETF 72:

https://mailarchive.ietf.org/arch/msg/netmod/_l3t_HLcC0is2KXiYhBAgfSnxK4

So here we go, that guy Mikko had a point.

Lada

> 
> Jernej
> 
>> 
>> 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

--
Ladislav Lhotka, CZ.NIC Labs
PGP Key ID: E74E8C0C




_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to