Re: [netmod] default namespace in XPath

2018-03-07 Thread Ladislav Lhotka
On Wed, 2018-03-07 at 14:06 +0100, Martin Bjorklund wrote: > Ladislav Lhotka wrote: > > Hi, > > > > sec. 6.4.1 in RFC 7950 says in the second bullet item: > > > > Names without a namespace prefix belong to the same namespace as > > the identifier of the current node. > >

Re: [netmod] default namespace in XPath

2018-03-07 Thread Martin Bjorklund
Ladislav Lhotka wrote: > Hi, > > sec. 6.4.1 in RFC 7950 says in the second bullet item: > > Names without a namespace prefix belong to the same namespace as > the identifier of the current node. > > It is unclear what "current node" means: > > 1. Is it the context node

Re: [netmod] default namespace in XPath

2018-03-07 Thread Ladislav Lhotka
Hi Michal, On Wed, 2018-03-07 at 10:18 +0100, Michal Vaško wrote: > Hello, > we have implemented it as option 1 based on the "current()" function Right, I have the same in my implementation. It is however counter-intuitive in cases like my example because unprefixed names normally receive the

Re: [netmod] default namespace in XPath

2016-11-24 Thread Ladislav Lhotka
;> Cc: NETMOD WG <netmod@ietf.org> >> Subject: Re: [netmod] default namespace in XPath >> >> >>> On 24 Nov 2016, at 11:03, Jernej Tuljak <jernej.tul...@mg-soft.si> wrote: >>> >>>> -Original Message- >>>> From: n

Re: [netmod] default namespace in XPath

2016-11-24 Thread Jernej Tuljak
> -Original Message- > From: Ladislav Lhotka [mailto:lho...@nic.cz] > Sent: Thursday, November 24, 2016 11:52 AM > To: Jernej Tuljak <jernej.tul...@mg-soft.si> > Cc: NETMOD WG <netmod@ietf.org> > Subject: Re: [netmod] default namespace in XPath > >

Re: [netmod] default namespace in XPath

2016-11-24 Thread Ladislav Lhotka
.\ietf-test.yang:32: error:ietf-foo:A in the path > for b at ietf-foo.yang:23 (at OK, so how do you define "current module"? Lada > .\ietf-test.yang:30) is not found. > I believe it means, the path "/if:interfaces/if:interface/A/a" in module > "ietf-foo"

Re: [netmod] default namespace in XPath

2016-11-24 Thread Ladislav Lhotka
> On 24 Nov 2016, at 11:03, Jernej Tuljak wrote: > >> -Original Message- >> From: netmod [mailto:netmod-boun...@ietf.org] On Behalf Of Ladislav >> Lhotka >> Sent: Thursday, November 24, 2016 10:14 AM >> To: NETMOD WG >> Subject: [netmod]

Re: [netmod] default namespace in XPath

2016-11-24 Thread wangzitao
ces/if:interface/foo:A/foo:a" -Michael -邮件原件----- 发件人: Ladislav Lhotka [mailto:lho...@nic.cz] 发送时间: 2016年11月24日 17:40 收件人: wangzitao 抄送: NETMOD WG 主题: Re: [netmod] default namespace in XPath > On 24 Nov 2016, at 10:33, wangzitao <wangzi...@huawei.com> wrote: > > Hi La

Re: [netmod] default namespace in XPath

2016-11-24 Thread wangzitao
Hi Lada, In my understanding, it means to equal to current module's prefix. For example: module ietf-foo { namespace "urn:ietf:params:xml:ns:yang:ietf-foo"; prefix foo; import ietf-interfaces { prefix if; } . augment