Re: [weirds] feedback on draft-designteam-weirds-using-http

Julian Reschke <julian.reschke@gmx.de> Thu, 17 May 2012 20:24 UTC

Return-Path: <julian.reschke@gmx.de>
X-Original-To: weirds@ietfa.amsl.com
Delivered-To: weirds@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 60E4721F87A2 for <weirds@ietfa.amsl.com>; Thu, 17 May 2012 13:24:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.58
X-Spam-Level:
X-Spam-Status: No, score=-102.58 tagged_above=-999 required=5 tests=[AWL=0.019, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mbThSm80F+qS for <weirds@ietfa.amsl.com>; Thu, 17 May 2012 13:24:53 -0700 (PDT)
Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by ietfa.amsl.com (Postfix) with SMTP id 4843921F87E9 for <weirds@ietf.org>; Thu, 17 May 2012 13:24:53 -0700 (PDT)
Received: (qmail invoked by alias); 17 May 2012 20:24:52 -0000
Received: from p54BB26EE.dip.t-dialin.net (EHLO [192.168.178.36]) [84.187.38.238] by mail.gmx.net (mp070) with SMTP; 17 May 2012 22:24:52 +0200
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1/4MSdYg7b4YYS3Yq1H6cuPEsphXE+4Vgdh+h74eY Ln0q6jVd2UrhTj
Message-ID: <4FB55E74.3050008@gmx.de>
Date: Thu, 17 May 2012 22:24:20 +0200
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: Francisco Obispo <fobispo@isc.org>
References: <4FB26082.3070800@gmx.de> <9B94D739-E037-4539-82E8-0E79BBFEC543@hxr.us> <4FB520B4.1070803@gmx.de> <A58EF70A-BBAA-4DA5-A951-C1F16356F741@hxr.us> <4FB5537A.9060208@gmx.de> <D8BBBFB4-B14D-4CCC-A967-7252476C514E@isc.org>
In-Reply-To: <D8BBBFB4-B14D-4CCC-A967-7252476C514E@isc.org>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 8bit
X-Y-GMX-Trusted: 0
Cc: weirds@ietf.org
Subject: Re: [weirds] feedback on draft-designteam-weirds-using-http
X-BeenThere: weirds@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "WHOIS-based Extensible Internet Registration Data Service \(WEIRDS\)" <weirds.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/weirds>, <mailto:weirds-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/weirds>
List-Post: <mailto:weirds@ietf.org>
List-Help: <mailto:weirds-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/weirds>, <mailto:weirds-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 17 May 2012 20:24:54 -0000

On 2012-05-17 22:13, Francisco Obispo wrote:
> If you need to specify non-ascii characters in an XML document, you either have to:
>
> a) Encode the characters in their XML entities ñ ->  &#241;  or

1) You can use those "as-is", if you declare the document encoding 
properly (such as by using UTF-8).

2) That doesn't change the repertoire of characters you can use.

3) Also, it's ASCII control characters which are a problem.

> b) use a CDATA instruction: Unparsed Character Data [1]
>
> [1] http://www.w3schools.com/xml/xml_cdata.asp

-> <http://w3fools.com/>

> The latter approach seems to be more efficient for some.

And it doesn't help at all. In CDATA, you don't need to escape "<" and 
"&", but in turn there are *other* sequences you can't use. See 
<http://www.w3.org/TR/REC-xml/#sec-cdata-sect> -- you can't have the 
string "]]>" inside CDATA because it ends the CDATA section.

My recommendation is never ever to use CDATA unless when hand-editing 
*and* when you absolute positively know what you do. If you generate 
with a program, don't ever use it.

Best regards, Julian