Re: [netmod] ?==?utf-8?q? default namespace in XPath
Michal Vaško <mvasko@cesnet.cz> Wed, 07 March 2018 09:18 UTC
Return-Path: <mvasko@cesnet.cz>
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 D4018126D3F for <netmod@ietfa.amsl.com>; Wed, 7 Mar 2018 01:18:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.799
X-Spam-Level:
X-Spam-Status: No, score=-1.799 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, T_DKIM_INVALID=0.01, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=fail (1024-bit key) reason="fail (body has been altered)" header.d=cesnet.cz
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 KlIiSzwcS1Fe for <netmod@ietfa.amsl.com>; Wed, 7 Mar 2018 01:18:41 -0800 (PST)
Received: from kalendar.cesnet.cz (kalendar.cesnet.cz [78.128.211.34]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EB408124217 for <netmod@ietf.org>; Wed, 7 Mar 2018 01:18:40 -0800 (PST)
Received: by kalendar.cesnet.cz (Postfix, from userid 999) id 8604E602EC; Wed, 7 Mar 2018 10:18:38 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cesnet.cz; s=kalendar; t=1520414318; bh=WUrFh4lOwaScHihffK96FIKhNdBD/UX9xvTFzrJtRSQ=; h=In-Reply-To:From:Date:Cc:To:Subject; b=GF9WOlx5ulwrtsyYyG1CaXWwKf/zlKCtIZ94NxV8/WJxL35d03Ut5O0f3rs2P7iI9 nNP8OhWtg3wGhL38TxoHNUU4FQB6RNMiZWk+ykP+MHsLTMqeXFpOiUH4/w+DJ7FVKb a1R7sdkjFm4E/Aq1cY5xADoX5hHff1p58ItHEfeQ=
Content-Type: text/plain; charset="utf-8"
In-Reply-To: <1520413892.8319.9.camel@nic.cz>
From: Michal Vaško <mvasko@cesnet.cz>
X-Forward: 147.229.12.224
Date: Wed, 07 Mar 2018 10:18:38 +0100
Cc: NETMOD WG <netmod@ietf.org>
To: Ladislav Lhotka <lhotka@nic.cz>
MIME-Version: 1.0
Message-ID: <3fcd-5a9fae80-9f-740b6f80@66506381>
User-Agent: SOGoMail 2.3.23
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/v7WkLXj6ld8FFx7nBsiUU-YTi88>
Subject: Re: [netmod] ?==?utf-8?q? 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:18:43 -0000
Hello, we have implemented it as option 1 based on the "current()" function definition (RFC 7950 sec. 10.1.1): The current() function takes no input parameters and returns a node set with the initial context node as its only member. If this was not intended and actually option 2 is correct, the "current()" function should probably be renamed or return a different node to be consistent and not misleading. Regards, Michal On Wednesday, March 7, 2018 10:11 CET, 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)? > > Thanks, Lada > > -- > Ladislav Lhotka > Head, CZ.NIC Labs > PGP Key ID: 0xB8F92B08A9F76C67 > > _______________________________________________ > netmod mailing list > netmod@ietf.org > https://www.ietf.org/mailman/listinfo/netmod
- [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