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

<?xml version="1.0" ?>
<r:RDF xmlns:r="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  <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"/>
  <d:title>Annotation of Sample Page</d:title>
  <d:creator>Ralph Swick</d:creator>
    <h:Body r:parseType="Literal"><![CDATA[<html>
      <head><title>Ralph's Annotation</title></head>
       line 1<br>
       line 2
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