W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > November 2007

Re: [Fwd: ISSUE-63: White-Space Canonicalization of XML Literals]

From: Ben Adida <ben@adida.net>
Date: Tue, 13 Nov 2007 12:42:45 -0800
Message-ID: <473A0C45.3010403@adida.net>
To: Niklas Lindström <lindstream@gmail.com>
CC: public-rdf-in-xhtml-tf@w3.org

Niklas Lindström wrote:
> To be a little picky though, do we mean *plain literals* as in
> non-typed (but possibly with language), or also e.g. xsd:string
> literals? With plain literals I only see this as a feature (a very
> reasonable one). But I think "formally" any typed literal should be
> left untouched.. (or am I bringing back the entire problem?)

Very good point, but I think we *should* canonicalize all literals other
than XMLLiteral, because we want the following:

<span property="dc:date" datatype="xsd:date">

to work, in the sense that trailing and preceding spaces should be
removed, since that makes writing the HTML much more natural.

> Although I wonder if our problem isn't in fact that this only occurs
> in non-*x*html-aware implementations. So the actual issue is with IE
> only, since it doesn't properly handle the xhtml as xml. In practise,
> isn't original whitespace available in all of Firefox, Safari and
> Opera?

That's a very good point. I can be swayed on this, although I do think
it's harmless to canonicalize the XML Literal if it renders the same way.

Received on Tuesday, 13 November 2007 20:42:59 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:50:25 UTC