Re: [xml2rfc] formatting <postal>, was: [xml2rfc-dev] [Rfc-markdown] New xml2rfc release: v2.12.1

Julian Reschke <julian.reschke@gmx.de> Fri, 17 May 2019 08:07 UTC

Return-Path: <julian.reschke@gmx.de>
X-Original-To: xml2rfc@ietfa.amsl.com
Delivered-To: xml2rfc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9E721120157; Fri, 17 May 2019 01:07:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=gmx.net
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 UwdGHKtKj6dF; Fri, 17 May 2019 01:07:21 -0700 (PDT)
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 6DDB812012B; Fri, 17 May 2019 01:07:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1558080424; bh=DnpWpvsIRei7URgS1uMsYKsNl37UqcDT0myFdJ7EVas=; h=X-UI-Sender-Class:Subject:From:To:Cc:References:Date:In-Reply-To; b=Lw3mkJjFdTxdj/WtUc9lZTLMx+J2fS/ln0NRBOpjVdYWAEPoXOxCXPufgsKzPWhqx YXbc2wzQGSZEIjBJs1MK6oIe1yO8ifxCM1vFj0vTz28mWwXNP0LvEYdrHPC7gjeKTh pOl6NLj+lrGsOFGsBFXwp/qOs+TDqd51ziyvqPZ0=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.1.34] ([217.91.35.233]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M2t0Q-1gZAac2jPK-00sehw; Fri, 17 May 2019 10:07:04 +0200
From: Julian Reschke <julian.reschke@gmx.de>
To: Henrik Levkowetz <henrik@levkowetz.com>, Miek Gieben <miek@miek.nl>
Cc: xml2rfc@ietf.org, xml2rfc-dev@ietf.org
References: <E1gH6Wn-0002ca-CU@durif.tools.ietf.org> <20181029204446.xwjkdfdpj7sbhvsr@miek.nl> <0455bd48-3392-bb4c-f510-c57489792606@levkowetz.com> <20181029214325.5i3rrv55dpamvbsa@miek.nl> <a614b58e-0d4c-67d0-77f9-f5b6b66d7ff1@levkowetz.com> <d0a3693b-87b5-c8e9-8137-9d61805f58f0@gmx.de> <f01715aa-ee1b-ec80-0657-7d19b23da98a@levkowetz.com> <1d03c466-bd4a-934e-18f0-f9ac5bc2225e@gmx.de> <b54c55cd-1add-ae83-4dfe-841700980de2@gmx.de>
Message-ID: <69fbbcfc-f700-7f1a-9ea4-20de0f7bf4ff@gmx.de>
Date: Fri, 17 May 2019 10:07:03 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <b54c55cd-1add-ae83-4dfe-841700980de2@gmx.de>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:yPCO7ivnNB0j6eAQZ3mWet1p1L7Uy95rCZF/jYY0eieNdO4T8Xn HXEkPt331qckvSuBrQ5F8fLAkv23giMM0+vUCfCgflFR9Fe3CspaaJ71pb+Z7peAkCmHyKo HIzfd2pmw/C8BOrPoEnvFpgAdNosPI7+sfq+i4OT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Sjfm8z7Z8zYK25cGS/4isOKUTkuRoe1R4YNHEMo7vDcS
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/BY4osSBERBj-s3w22PA589BQpTI>
Subject: Re: [xml2rfc] formatting <postal>, was: [xml2rfc-dev] [Rfc-markdown] New xml2rfc release: v2.12.1
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <xml2rfc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/xml2rfc>, <mailto:xml2rfc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/xml2rfc/>
List-Post: <mailto:xml2rfc@ietf.org>
List-Help: <mailto:xml2rfc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xml2rfc>, <mailto:xml2rfc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 17 May 2019 08:07:23 -0000

On 15.05.2019 09:19, Julian Reschke wrote:
> ...
> Coming back to this because I'm looking into how much it would take to
> implement it.
>
> Apart from complexity, my concern here is that the output now depends on
> a library that is specific to a certain language. If you can point to a
> definition of what that library does, it would be less of a concern.
>
> Looking at
> <https://tools.ietf.org/html/draft-levkowetz-xml2rfc-v3-implementation-notes-08#section-3.1.13>:
>
>
>> 3.1.13.  In Section 2.37, <postal>
>>
>>    The enhancement to <postal>, adding a <postalLine> element, is a fair
>>    step on the way to permitting better representation of the wealth of
>>    postal addresses around the globe which don't match the American
>>    postal addresses.
>>
>>    Unfortunately, it manages to throw the baby out with the bathwater by
>>    constraining postalLine to be used only if none of the other elements
>>    are used.  This makes it impossible to apply hCard [HCARD] labels
>>    (based on vCard [RFC6350] properties) to the elements of an address,
>>    as [RFC7992] requires.  Applying the schema from [RFC7991] would make
> ...

FWIW, I just recalled *why* it is so.

In RFC 2629's DTD, the content model for <postal> made the ordering of
child elements significant, so in theory an author could at least have
specified the elements in the order that is correct for the country the
address is in (see <https://tools.ietf.org/html/rfc2629#section-2.2.2>).
However, the *implementation* (v1/TCL) did not respect that. Thus, this
could not be changed without breaking existing output, and so that's
what we have today.

<postalLine> was introduced as *alternative* which has this ordering
guarantee. However, that meant that it couldn't be easily fitted back
between the existing child elements.

Hope this clarifies how we got where RFC 7991 stands.

Best regards, Julian