- From: Graham Klyne <GK@ninebynine.org>
- Date: Fri, 09 Jul 2004 14:09:40 +0100
- To: Norman Walsh <Norman.Walsh@Sun.COM>, www-rdf-interest@w3.org
At 07:42 09/07/04 -0400, Norman Walsh wrote: >I think if you are parsing a typed literal and you know you're parsing >a typed literal, you should collapse the whitespace before passing the >value on to down-stream applications. > >Given that the RDF spec says that whitespace is eliminated by >validation, I can easily imagine writing an application that assumes >typed values like integers and URIs won't have insignificant >whitespace around them. Hmmm. Let's try a test case. Does this: <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/"> <rdf:Description rdf:about="http://www.example.org/"> <dc:title> The trouble with spaces </dc:title> </rdf:Description> </rdf:RDF> RDF-entail this: <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/"> <rdf:Description rdf:about="http://www.example.org/"> <dc:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string"> The trouble with spaces </dc:title> </rdf:Description> </rdf:RDF> I think it should, but under your suggested regime I think it would not. #g ------------ Graham Klyne For email: http://www.ninebynine.org/#Contact
Received on Sunday, 11 July 2004 04:33:58 UTC