W3C home > Mailing lists > Public > public-annotea-dev@w3.org > April to June 2005

interoperability issue -- posting text/html bodies with Annotea

From: Mark Smith <mcs@pearlcrescent.com>
Date: Mon, 18 Apr 2005 15:59:56 -0400
Message-ID: <426411BC.80802@pearlcrescent.com>
To: public-annotea-dev@w3.org

All of the examples on the Annotea protocol page 
(http://www.w3.org/2001/Annotea/User/Protocol.html) use XHTML to 
represent inline bodies when posting new annotations. What is the 
correct way to post text/html bodies (which are not well-formed XML)?  I 
think the right answer is "use CDATA" but empirical evidence tells me 
that the W3C and ZAnnot servers do not handle that correctly.  A sample 
that uses CDATA is included at the end of this message.  Should CDATA work?

-Mark Smith
 Pearl Crescent, LLC
 http://pearlcrescent.com

<?xml version="1.0" ?>
<r:RDF xmlns:r="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
       xmlns:a="http://www.w3.org/2000/10/annotation-ns#"
       xmlns:d="http://purl.org/dc/elements/1.1/"
       xmlns:h="http://www.w3.org/1999/xx/http#">
 <r:Description>
  <r:type r:resource="http://www.w3.org/2000/10/annotation-ns#Annotation"/>
  <r:type r:resource="http://www.w3.org/2000/10/annotationType#Comment"/>
  <a:annotates r:resource="http://serv1.example.com/some/page.html"/>
  <a:context>
     http://serv1.example.com/some/page.html#xpointer(id("Main")/p[2])
  </a:context>
  <d:title>Annotation of Sample Page</d:title>
  <d:creator>Ralph Swick</d:creator>
  <a:created>1999-10-14T12:10Z</a:created>
  <d:date>1999-10-14T12:10Z</d:date>
  <a:body>
   <r:Description>
    <h:ContentType>text/html</h:ContentType>
    <h:ContentLength>289</h:ContentLength>
    <h:Body r:parseType="Literal"><![CDATA[<html>
      <head><title>Ralph's Annotation</title></head>
      <body>
       line 1<br>
       line 2
      </body>
     </html>]]>
    </h:Body>
   </r:Description>
  </a:body>
 </r:Description>
</r:RDF>
Received on Monday, 18 April 2005 20:00:02 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:42:13 UTC