W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2002

Re: Is it legal to embed xml within an <annotation><documentation>

From: Rick Jelliffe <ricko@topologi.com>
Date: Thu, 13 Jun 2002 04:59:16 +1000
Message-ID: <044501c21243$3fff9b20$4bc8a8c0@AlletteSystems.com>
To: <xmlschema-dev@w3.org>

Do you really want that element there, or just that tag as text.

If you want the text, you need to handle the delimiters, so

    Each component is a <length/>. &lt;length/>. 

or 

    <![CDATA[Each component is a <length/>.]]>

otherwise it will be recognized.  

If you want to do something smart,
like have a stylesheet interpret the <length/> inside <documentation>
differently to generate nice text, that is probably asking for trouble. 
A home made element, like
  Each component is a <html:code>&lt;length</html:code>.  
would probably be easier. (Then run a separate process to
extract these and validate them seperately so that all your
documentation is correct...Yikes.)

Cheers
Rick Jelliffe
Received on Wednesday, 12 June 2002 14:47:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:31 GMT