W3C home > Mailing lists > Public > w3c-rdfcore-wg@w3.org > September 2002

Re: Datatyping: moving away from "literal as 3-part thing" to "literal as dt+opaque bit"

From: Jeremy Carroll <jjc@hpl.hp.com>
Date: Mon, 2 Sep 2002 20:14:58 +0200
To: w3c-rdfcore-wg@w3.org
Message-Id: <200209022014.58083.jjc@hpl.hp.com>

>[Patrick said, at the telecon, "xml:lang infects everything" as an
>example of this view]

>There should be no "infection"
>of new types by stuff like language properties,

The unicode string in an XML document which gives the lexical form of a 
datatype literal may well be in scope of an xml:lang declaration.

But the current proposals expect the parser to know whether it is parsing an 
old-style literal (in which case xml:lang is significant) or a new style 
literal, in which case it is not.


  <a:prop xml:lang="en" rdf:ltype="&xsd;string">banana</a:prop>

would deliver the value <xsd:string>"banana" and the language declaration has 
no effect. (If you want an xsd:string, you don't get a langstring.

Received on Monday, 2 September 2002 14:16:30 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:53:59 UTC