Re: [netmod] xpaths and Wrapping Long Lines - draft-ietf-netmod-yang-tree-diagrams-03

Ian Farrer <ianfarrer@gmx.com> Thu, 21 December 2017 10:29 UTC

Return-Path: <ianfarrer@gmx.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 AC7AD12D82F; Thu, 21 Dec 2017 02:29:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, 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 XjLQCRCEICkC; Thu, 21 Dec 2017 02:29:56 -0800 (PST)
Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 13B1F1200C1; Thu, 21 Dec 2017 02:29:55 -0800 (PST)
Received: from hargashouseofribs.lan ([80.159.240.8]) by mail.gmx.com (mrgmx003 [212.227.17.184]) with ESMTPSA (Nemesis) id 0MXqaN-1eWlDd45AN-00WqVk; Thu, 21 Dec 2017 11:29:51 +0100
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\))
From: Ian Farrer <ianfarrer@gmx.com>
In-Reply-To: <1513852135.9539.15.camel@nic.cz>
Date: Thu, 21 Dec 2017 11:29:37 +0100
Cc: draft-ietf-netmod-yang-tree-diagrams@ietf.org, netmod@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <CDFD26D5-643B-4986-9400-FBC4982D6CFB@gmx.com>
References: <45E0BE8A-DA0B-459E-9757-C9817912E473@gmx.com> <1513852135.9539.15.camel@nic.cz>
To: Ladislav Lhotka <lhotka@nic.cz>
X-Mailer: Apple Mail (2.3273)
X-Provags-ID: V03:K0:eVGw4mbxsuLKs+HQpNRzK1I0d4OA94l3badmks0Gdv1NlGhMo9j mRdQMpLSLkwpVsRQHRP6sFZFLlsacy4PJIl/cy5+YlV+Z0ZfghVA1sptUUJ4QfVIhFnucEz iYfEE0ONPIv+WMQ0TM4h6xfelKigMD19L958ZQvKp+2ujT3zTl7y62nD87GaSne2lFyV+ql zPZTeooGICtNzTUjHV5HQ==
X-UI-Out-Filterresults: notjunk:1;V01:K0:Tgxtrc4BV+U=:xA2b56WWaeYmgv/rG+aVYh IMlemYSzMHaw6lE5PGIfhym4hA6YHiWMhmwuCVSNEmXHZPyNgVJxSFf9dHe+EXcIxsypfa0Rb J8LWvMbOmS/ENoHhLirA2XeaosRdm5FJbH8RMnxydPx33JROySbi0FhUX4IvSFPUtejNmJEFD FJ88AAujvZxDiTjC9+kzQJsr6NXfdRk1tdEGCclw2srSdw/FG6n1fH+JVj7kuPJN6Ssrx/zje IPIM/0lf9YhyOxCBkp1luRgUGderYpx+jZ87l4nONA6ycbwTL0MJ8m29uKYs6iE4y9On1r5IB wOEzBKYbYNpR+Ib4ulU+XkeZYM1w7fOwl3DF0K2eQ8W8aOk5YF5s8jEstqDJDPzdHNeW5P6DZ c47o+3V7J1fbMRo03IOJoCySA8ahPtkRqL4tXOEK1ewupUvIhGdUmxuapKtDIo/eYDlQnQ7qC nl8KN5uqOPNLIAZrrciqiTdypVEK6L5OH6cWijgAA0OezZozZk57pXViycQv2/Hr0gSfna4Zk i7OFMzZzL72Jzrs+LEGB15ekPDWSW9rStGQy8dw/OJBd5liTWRRWBl3dd2hzYsfOnfeT13KMp 0FHcUFr+cnbQhUWHyxnx5Tkm6uOEo5Q2mPNSqT9LBhAb66e3Fnvg3//5FOAj6cY1TF7CjHGIl kSPkYtJZ0Tsu8xyTSkY8HIDB7S+IaRC8x4miX2ewQlxSUhCt0YbuHZyQLApLnHk//t0H3Y2K4 EMOS+DrDEjD3nkL4fBGLt0jQ8ErE5lZGSkBqulT+9/RgCyK5rcWfVsl4ski+/tr3GDDvS5Ey6 if/VoZdqvOWOIcGfxxxcm5+QY9R7TBhBRmwxzFih0rEKWl7XTY=
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/AFZ9PwPwe3S8YRoMrSfHTappk4A>
Subject: Re: [netmod] xpaths and Wrapping Long Lines - draft-ietf-netmod-yang-tree-diagrams-03
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: Thu, 21 Dec 2017 10:29:59 -0000

Great. Many thanks,
Ian

> On 21. Dec 2017, at 11:28, Ladislav Lhotka <lhotka@nic.cz> wrote:
> 
> Hi Ian,
> 
> On Thu, 2017-12-21 at 10:42 +0100, Ian Farrer wrote:
>> Hi,
>> 
>> I’m just looking at the guidance on wrapping long lines given in Section 3.1.
>> Unfortunately, this doesn’t cover the case where I refer to a long path. E.g:
>> 
>> augment /nat:nat/nat:instances/nat:instance/nat:mapping-table/nat:mapping-
>> entry:
>> 
>> In this case, the total length (unindented) is 80 characters, 82 indented and
>> the path is 72 characters. Moving the path onto it’s own line with indents
>> will exceed the 72 character limit, so I need a line break in the path. What’s
>> the correct way to do this?
> 
> XPath syntax permits whitespace between tokens, but the argument of "augment" is
> a schema node identifier and not XPath. The ABNF productions for schema node
> identifiers do not permit whitespace but you can always use string
> concatenation:
> 
> augment "/nat:nat/nat:instances/nat:instance/"
>      + "nat:mapping-table/nat:mapping-entry";
> 
> Lada
> 
>> 
>> Thanks,
>> Ian 
>> _______________________________________________
>> netmod mailing list
>> netmod@ietf.org
>> https://www.ietf.org/mailman/listinfo/netmod
> -- 
> Ladislav Lhotka
> Head, CZ.NIC Labs
> PGP Key ID: 0xB8F92B08A9F76C67