W3C home > Mailing lists > Public > public-rdf-wg@w3.org > November 2011

The value space of XMLLiteral (was: Re: XML literals poll)

From: Richard Cyganiak <richard@cyganiak.de>
Date: Wed, 23 Nov 2011 22:24:25 +0000
Cc: RDF Working Group WG <public-rdf-wg@w3.org>
Message-Id: <DBA56BA9-DEAC-4F6F-A152-CB0A8362ED54@cyganiak.de>
To: Gavin Carothers <gavin@carothers.name>
Hi Gavin,

Thanks for the comments! A comment and question below.

On 21 Nov 2011, at 19:44, Gavin Carothers wrote:
>> Q1. Should the specs define a way to compare XML literals based on value?
>> In other words, in the same way that integers 7 and 007 have the same value, should <foo/> and <foo></foo> be defined as having the same value?
> No. The value space of an XML fragment or document is far too complex
> for our WG to deal with (schema annotation, DTD parse additions,
> white-space rules, etc). There are too many special cases, and too
> little value. XPath and XQuery stop short of doing this, that should
> be a hint to us.

I note that RDF 2004 does this already, and it doesn't look too complex  they just referred to Exclusive XML Canonicalization spec:

(This is a link to the lexical space definition  the value space is 1:1 with the lexical space in the 2004 design.)

Saying that the value space is an XML infoset doesn't seem to be too complicated. I believe there is a 1:1 relationship between canonicalized XML documents and XML infosets:

So, in terms of handling all the special cases and so on, isn't this a solved problem?

Received on Wednesday, 23 November 2011 22:24:59 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:04:10 UTC