W3C home > Mailing lists > Public > w3c-rdfcore-wg@w3.org > July 2003

XML literals considered textual

From: Graham Klyne <gk@ninebynine.org>
Date: Wed, 09 Jul 2003 09:41:17 +0100
Message-Id: <>
To: martin Duerst <duerst@w3.org>, w3c-rdfcore-wg@w3.org

[Some personal thoughts triggered by my understanding of Martin's messages]

Premise:  the primary role of XML literals in RDF is to allow 
text-with-markup to be captured as well as plain text.

Possible implications:

1. XML literals should be treated as similarly as possible to plain literals.

2. In particular, treatment of xml:lang applied to XML literals should be
the same as xml:lang applied to plain literals.

3. It may be desirable (but, I think, not essential) to distinguish between 
plain literals and XML literals in the abstract syntax.  (One possible 
alternative might be to treat all literals as XML, applying escaping as 
required to '&' and '<' in plain literals.  Personally, I think this is 

4. Possible use of XML structures to represent other datatyped values is a 
secondary consideration.   One might consider other datatypes using XML 
markup to encode their values, e.g. a complex number datatype with lexical 
forms like:
But, parseType="Literal" parsing cannot be used with datatyped literals, 
and it may be better to use RDF for making composite data structures rather 
than have two.

5. The intended purpose of XML literals should be made clear in the RDF 
specifications, if only for the benefit of future working groups.

I deliberately do not try to formulate any detailed conclusions at this time.


Graham Klyne
PGP: 0FAA 69FF C083 000B A2E9  A131 01B9 1C7A DBCA CB5E
Received on Wednesday, 9 July 2003 04:53:13 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:24:23 UTC