W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > May 2008

Test Case #108: Specifying a plain literal with datatype="" and xml:lang preservation

From: Manu Sporny <msporny@digitalbazaar.com>
Date: Mon, 12 May 2008 11:12:45 -0400
Message-ID: <48285E6D.6020805@digitalbazaar.com>
To: RDFa mailing list <public-rdf-in-xhtml-tf@w3.org>

Purpose:

This test checks to make sure that the RDFa parser emits a plain literal
when the datatype is specified as "" and preserves the xml:lang value.
The text, with control characters and whitespace preserved, reads
"Greek\nwhite   space\n".

====================== Test Case 108 =============================

---------------------Test Case 108 XHTML--------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
          "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ex="http://example.org/">
  <head>
    <title>Test 0108</title>
  </head>
  <body>
    <p about="http://example.org/node" property="ex:property"
       datatype="" xml:lang="el">ελληνικό
άσπρο   διάστημα
</p>
  </body>
</html>
----------------------------------------------------------------

---------------------Test Case 108 SPARQL -----------------------
ASK WHERE {
<http://example.org/node>
   <http://example.org/property>
      "ελληνικό\nάσπρο   διάστημα\n" .
}
----------------------------------------------------------------

-- manu

-- 
Manu Sporny
President/CEO - Digital Bazaar, Inc.
blog: Dynamic Spectrum Auctions and Digital Marketplaces
http://blog.digitalbazaar.com/2008/04/24/dynamic-spectrum-auctions/
Received on Monday, 12 May 2008 15:13:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 12 May 2008 15:13:22 GMT