[netmod] default namespace in XPath

Ladislav Lhotka <lhotka@nic.cz> Wed, 07 March 2018 09:11 UTC

Return-Path: <lhotka@nic.cz>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost []) by ietfa.amsl.com (Postfix) with ESMTP id 63876126D85 for <netmod@ietfa.amsl.com>; Wed, 7 Mar 2018 01:11:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.01
X-Spam-Status: No, score=-7.01 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, T_RP_MATCHES_RCVD=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nic.cz
Received: from mail.ietf.org ([]) by localhost (ietfa.amsl.com []) (amavisd-new, port 10024) with ESMTP id WAiIkotIw5Lg for <netmod@ietfa.amsl.com>; Wed, 7 Mar 2018 01:11:36 -0800 (PST)
Received: from mail.nic.cz (mail.nic.cz [IPv6:2001:1488:800:400::400]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 35FA9127978 for <netmod@ietf.org>; Wed, 7 Mar 2018 01:11:35 -0800 (PST)
Received: from birdie (unknown [IPv6:2001:718:1a02:1::380]) by mail.nic.cz (Postfix) with ESMTPSA id 2C11062426 for <netmod@ietf.org>; Wed, 7 Mar 2018 10:11:33 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1520413893; bh=csYgiFjQ2sM9FxLnBlvLABytnyszohJxjLM+itTG1NM=; h=From:To:Date; b=QMsgGwr47SW3F6JSJ0rgMqW6P3QxqjPiTwGgUkM/lC6Jo5dhOb0dfiTP+KqXzq+CA QUWsdn6lAKzNqlr04xezIMJDdN5juBWqJoooWqkC+6Z8l/JRGxQ5DzUP6asLQ7+Gqe tzE6aEH2Uelpa1da8J/rKRkSryUE173nFaar1VeI=
Message-ID: <1520413892.8319.9.camel@nic.cz>
From: Ladislav Lhotka <lhotka@nic.cz>
To: NETMOD WG <netmod@ietf.org>
Date: Wed, 07 Mar 2018 10:11:32 +0100
Organization: CZ.NIC
Content-Type: text/plain; charset="UTF-8"
X-Mailer: Evolution 3.26.5
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: clamav-milter 0.99.2 at mail
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/jnJxP7h5xJpnji_Wph5u7-cMve8>
Subject: [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 09:11:38 -0000


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

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)?

Thanks, Lada

Ladislav Lhotka
Head, CZ.NIC Labs
PGP Key ID: 0xB8F92B08A9F76C67