W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2008

Re: [widgets] Trimming attribute values, a bad idea?

From: Henri Sivonen <hsivonen@iki.fi>
Date: Wed, 3 Dec 2008 10:50:45 +0200
Cc: ext Marcos Caceres <marcosscaceres@gmail.com>, public-webapps <public-webapps@w3.org>
Message-Id: <47B6F324-0E49-47D2-96E6-07E16CCC3E6A@iki.fi>
To: Jere Kapyaho <jere.kapyaho@nokia.com>

On Dec 3, 2008, at 10:38, Jere Kapyaho wrote:

> Based on that, it might be better to just *not* do it, but then you  
> wouldn't be XML compliant.

It's perfectly XML compliant to be DTDless, to let the XML processor  
do its thing with the datatype defaulted to CDATA and not to perform  
any trimming.

> Note that in XML this is specified in terms of DTD datatypes, but  
> the config document is described in RELAX NG.

So as far as the XML processor is concerned, all the attributes are  
CDATA. RELAX NG does not feed back to AVNormalize.

Henri Sivonen
Received on Wednesday, 3 December 2008 08:51:26 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:13 UTC