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/>. 


    <![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.)

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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:57 UTC