Re: [xml2rfc] <country> in v3

Brian E Carpenter <brian.e.carpenter@gmail.com> Fri, 03 January 2020 19:43 UTC

Return-Path: <brian.e.carpenter@gmail.com>
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 2DD2712002F for <xml2rfc@ietfa.amsl.com>; Fri, 3 Jan 2020 11:43:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 WYuWHAQ4oIXV for <xml2rfc@ietfa.amsl.com>; Fri, 3 Jan 2020 11:43:11 -0800 (PST)
Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) (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 7DE7A120013 for <xml2rfc@ietf.org>; Fri, 3 Jan 2020 11:43:11 -0800 (PST)
Received: by mail-pg1-x532.google.com with SMTP id z124so23823298pgb.13 for <xml2rfc@ietf.org>; Fri, 03 Jan 2020 11:43:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=S236SBeeNWy+6Mgn1p1us0MRohoFa4BS9FXtMzwbRAQ=; b=r8FnPZFWZYgUMvfrxc85qGa1bbYHKflStZ5hM+vPW7cFpRJYeRk0C7scsB6V98IdNB QMPZIiA/BNbXpPOjpWiS1xzpVr5liX64SR8mrBQceMOi2JuD32RCp3ubVssp4vC5MHeL V7mwynKSw5C9GK7yDJG76rY7sHUcqI6ASaemem9MM+f6SQ9aKiU8F8Tytb72XEADRIr2 A13tacBTaL5t2FTwR4k2GNmaAF/ALwvdcXJS8rMKB+0Ot4vLAqmstIgKkT2cYAUgGA0T 4oOB+xO/42QnLWDPFvUoBwwU6Q0oBEn89k8LLOrZk5Li4F8mrMdzy0GSMpO9JXCMGyHD JIvA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=S236SBeeNWy+6Mgn1p1us0MRohoFa4BS9FXtMzwbRAQ=; b=PH2mJ88WMAmAWfget+aZ/ijPow33CUZfsjBByyrjrdc9tIzjUQk9vNPTM4fWlCq9JG EPHWPPtdWvkltdib95nW3D5ecIDnAM9+HvTjTq5S9ioH4JWvGJksNqWrQS8bWRrmU6JK t+qxf64vet2uGOqtHtB6lBk+rgC0Si/0KCvfDe2yuyakI7jEtuys5tpMrsmH6szpjnLw WKDJNMSuEBkfLlzBo3g+kCfAKr8Hcr1r5P8sLusQfpQ7pv0QvinbxzltglXdTs7wnHf5 oh6MvWnDbDLisKDcYvaCjJRS7oZhuw872ZTCJ4GnzhtVnoF1cVaiHpNtSYi2MTbicEX1 aENQ==
X-Gm-Message-State: APjAAAXn1x2ohlJpg3B3qRYF8yV4sVWVaetzZJz64LgvqTXpELlQPSu2 5fJAH8au2cF28YFvkz/n56/H91P6
X-Google-Smtp-Source: APXvYqwVj9/kNyH8KwECt5EkD/JJ0Ovd5GM4QLHdqGgJpOCZ0IztKjsdiDLIs5KPBhwl9gIJBnheoQ==
X-Received: by 2002:a63:1007:: with SMTP id f7mr32669129pgl.397.1578080590669; Fri, 03 Jan 2020 11:43:10 -0800 (PST)
Received: from [192.168.178.30] (228.147.69.111.dynamic.snap.net.nz. [111.69.147.228]) by smtp.gmail.com with ESMTPSA id 199sm71729834pfv.81.2020.01.03.11.43.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Jan 2020 11:43:10 -0800 (PST)
To: Julian Reschke <julian.reschke@gmx.de>, xml2rfc@ietf.org
References: <918df451-55de-9bd2-688b-37d2d83762b5@gmail.com> <d8763b85-2a6c-e927-b50b-1d6fa9a8f361@gmx.de>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Message-ID: <1b6c8b07-df98-6b8e-9144-c203d23f632c@gmail.com>
Date: Sat, 04 Jan 2020 08:43:06 +1300
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1
MIME-Version: 1.0
In-Reply-To: <d8763b85-2a6c-e927-b50b-1d6fa9a8f361@gmx.de>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/XOGCOCr_zKLsOWqGy28GNgjvVgQ>
Subject: Re: [xml2rfc] <country> in v3
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, 03 Jan 2020 19:43:15 -0000

On 03-Jan-20 20:36, Julian Reschke wrote:
> On 02.01.2020 20:58, Brian E Carpenter wrote:
>> For some reason, it appears that <country>P.R. China</country> causes problems in v3, but <country>China</country> is OK.
>>
>> The problem I see is that <country> is simply ignored, and <code> is also ignored,
>> when the "P.R" was included.
>>
>> I think there is a similar issue with commas included in <street>.
>>
>> For both, RFC7991 says "Content model: only text content." I don't see that this
>> should exclude punctuation marks.
>>
>> Regards
>>     Brian Carpenter
> 
> xml2rfc wants an "ISO short name" here (see
> <https://www.iso.org/obp/ui#search> for a lookup UI).

I really hope it doesn't "want" an ISO code, since RFC7991 says nothing about
that. It's very convenient that they are available, though.

It takes some cheating to produce:

Dilbert Engineer
Pointy Haired Products LLC
42 Deepinit Street
Mudgrad 7991
Elbonia
Email: dilbert@example.com

> Another issue here is that it has unintended consequences with respect
> to Taiwanese users, as they would have to use "Taiwan (Province of China)".

That's a serious problem. But they can simply omit <country>.

> IMHO the changes with respect to postal formatting (see
> <https://tools.ietf.org/html/draft-levkowetz-xml2rfc-v3-implementation-notes-10#section-3.1.13>)
> are overly complex and should be backed out. And yes, I'm saying this
> after having it reverse engineered and partly implemented in my XSLT code.

Fortunately <street> isn't picky, so one can do anything:

    <author fullname="Dilbert Engineer" initials="D." surname="Engineer">
      <organization abbrev="Pointy LLC"/>
      <address>
        <postal>
          <street>Pointy Haired Products LLC</street>
          <street>42 Deepinit Street</street>
          <street>Mudgrad 7991</street>
          <street>Elbonia</street>
          <country/>
        </postal>
        <email>dilbert@example.com</email>
      </address>
    </author>

Regards
   Brian