Re: [netmod] default namespace in XPath
Martin Bjorklund <mbj@tail-f.com> Wed, 07 March 2018 13:06 UTC
Return-Path: <mbj@tail-f.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E578A12711E for <netmod@ietfa.amsl.com>; Wed, 7 Mar 2018 05:06:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level:
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jSn1t1d8auhn for <netmod@ietfa.amsl.com>; Wed, 7 Mar 2018 05:06:22 -0800 (PST)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id CE92F126B7E for <netmod@ietf.org>; Wed, 7 Mar 2018 05:06:21 -0800 (PST)
Received: from localhost (unknown [173.38.220.45]) by mail.tail-f.com (Postfix) with ESMTPSA id 921DC1AE02C9; Wed, 7 Mar 2018 14:06:20 +0100 (CET)
Date: Wed, 07 Mar 2018 14:06:20 +0100
Message-Id: <20180307.140620.956119706648700590.mbj@tail-f.com>
To: lhotka@nic.cz
Cc: netmod@ietf.org
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <1520413892.8319.9.camel@nic.cz>
References: <1520413892.8319.9.camel@nic.cz>
X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/4Rl1F3Os1t_k93uef2RqEDfZVCA>
Subject: Re: [netmod] default namespace in XPath
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 07 Mar 2018 13:06:23 -0000
Ladislav Lhotka <lhotka@nic.cz> 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 of the XPath expression, or > > 2. is it the schema node corresponding to the parent statement of the must/when > statement? > > For example: > > module example-4-a { > ... > container bag { > ... > } > } > > module example-4-b { > ... > import example-4-a { > prefix "ex4a"; > } > > augment "/ex4a:bag" { > when "/quux = 0"; > ... > } > } > ... > } > > What is the namespace of "quux" in the when expression? Is it "example-4-a" > (option 1 above) or "example-4-b" (option 2)? Just like with all other unprefixed items (except in a grouping/typedef), it is supposed to default to the prefix of the module where it is defined (lexical scope). So it is supposed to be "example-4-b". I agree that the term "current node" is misleading. /martin
- [netmod] default namespace in XPath Ladislav Lhotka
- Re: [netmod] ?==?utf-8?q? default namespace in XP… Michal Vaško
- Re: [netmod] default namespace in XPath Ladislav Lhotka
- Re: [netmod] default namespace in XPath Martin Bjorklund
- Re: [netmod] default namespace in XPath Ladislav Lhotka