- From: Norman Walsh <Norman.Walsh@Sun.COM>
- Date: Sun, 11 Jul 2004 12:59:21 -0400
- To: www-rdf-interest@w3.org
- Message-id: <87brimjx92.fsf@nwalsh.com>
/ Graham Klyne <GK@ninebynine.org> was heard to say: | 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. Leading and trailing whitespace is significant in strings. The more interesting test would be one that includes <geo:lat> 42.4 </geo:lat> Where the datatype of geo:lat is float or double or something like that. Be seeing you, norm -- Norman.Walsh@Sun.COM / XML Standards Architect / Sun Microsystems, Inc. NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
Received on Sunday, 11 July 2004 13:00:10 UTC