Re: [netmod] Y18: fix "when" expression context problem
Ladislav Lhotka <lhotka@nic.cz> Wed, 21 January 2015 13:28 UTC
Return-Path: <lhotka@nic.cz>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D10881A1AAE for <netmod@ietfa.amsl.com>; Wed, 21 Jan 2015 05:28:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham
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 T666briBJxEw for <netmod@ietfa.amsl.com>; Wed, 21 Jan 2015 05:28:21 -0800 (PST)
Received: from trail.lhotka.name (trail.lhotka.name [77.48.224.143]) by ietfa.amsl.com (Postfix) with ESMTP id E284D1A1AB1 for <netmod@ietf.org>; Wed, 21 Jan 2015 05:28:20 -0800 (PST)
Received: from localhost (unknown [195.113.220.110]) by trail.lhotka.name (Postfix) with ESMTPSA id 20E661CC0604; Wed, 21 Jan 2015 14:28:20 +0100 (CET)
From: Ladislav Lhotka <lhotka@nic.cz>
To: Martin Bjorklund <mbj@tail-f.com>, netmod@ietf.org
In-Reply-To: <20150121.132433.1505626678838099831.mbj@tail-f.com>
References: <20150121.132433.1505626678838099831.mbj@tail-f.com>
User-Agent: Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.4.51.2 (x86_64-apple-darwin14.0.0)
Date: Wed, 21 Jan 2015 14:28:17 +0100
Message-ID: <m2h9vk1cwe.fsf@nic.cz>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <http://mailarchive.ietf.org/arch/msg/netmod/haP-w-KYM0QkxzYtUBeA2E3BNE0>
Subject: Re: [netmod] Y18: fix "when" expression context problem
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.15
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: <http://www.ietf.org/mail-archive/web/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, 21 Jan 2015 13:28:26 -0000
Martin Bjorklund <mbj@tail-f.com> writes: > Hi, > > I had an action point to clarify the evaluation order of when > expressions, in Y18. > > I have updated Y18 with this proposal, in 7.19.5: > > OLD: > > The result of the XPath expression is converted to a boolean value > using the standard XPath rules. > > NEW: > > The result of the XPath expression is converted to a boolean value > using the standard XPath rules. > > If the XPath expression references any node that also has associated > "when" statements, these "when" expressions MUST be evaluated first. > There MUST NOT be any circular dependencies in these "when" > expressions. I think this sufficiently specifies the order of evaluations. I am now looking at the last bullet in sec. 7.9.15. The old (6020) text worked for the case when the node instance was present in the data tree, while the new text proposed in Y18 seems to cover the situation when the context node is missing. Maybe these two should be combined? NEW: o If the "when" statement is a child of any other data definition statement, the context node is the node in the accessible tree for which the "when" statement is defined. If no such node exists, it is tentatively created with no value and no children. Hmm, but what is the context node when *multiple* instances exist? This could happen if the when statement is on a list or leaf-list node. Lada > > > > /martin > > _______________________________________________ > netmod mailing list > netmod@ietf.org > https://www.ietf.org/mailman/listinfo/netmod -- Ladislav Lhotka, CZ.NIC Labs PGP Key ID: E74E8C0C
- [netmod] Y18: fix "when" expression context probl… Martin Bjorklund
- Re: [netmod] Y18: fix "when" expression context p… Ladislav Lhotka