W3C home > Mailing lists > Public > public-rdf-wg@w3.org > January 2012

On ACTION-118: Summarize issues relating to XSD canonicalization

From: Jeremy Carroll <jeremy@topquadrant.com>
Date: Wed, 18 Jan 2012 08:26:18 -0800
Message-ID: <4F16F2AA.3050806@topquadrant.com>
To: RDF Working Group WG <public-rdf-wg@w3.org>

Built-in derived datatypes may have different canonicalization rules 
from the primtiives.

Example issue:
"1"^^xsd:short and "1.0"^^xsd:decimal are both in canonical form.
They have the same value. It is 'natural' for certain RDF systems to 
canonicalize the former to the latter changing it's lexical form.

Thus any dependence from RDF on XSD canonicalization needs significant care.

Jeremy


http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#decimal


[[
3.2.3.2 Canonical representation

The canonical representation for decimal is defined by prohibiting 
certain options from the Lexical representation (3.2.3.1). 
Specifically, the preceding optional "+" sign is prohibited. The decimal 
point is required. Leading and trailing zeroes are prohibited subject to 
the following: there must be at least one digit to the right and to the 
left of the decimal point which may be a zero.

]]

http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#short
[[
3.3.18.2 Canonical representation

The canonical representation for short is defined by prohibiting certain 
options from the Lexical representation (3.3.18.1). Specifically, the 
the optional "+" sign is prohibited and leading zeroes are prohibited.

]]
Received on Wednesday, 18 January 2012 16:26:47 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:25:47 GMT