W3C home > Mailing lists > Public > public-qt-comments@w3.org > February 2003

Re: d-o-e and attribute values

From: David Carlisle <davidc@nag.co.uk>
Date: Sun, 23 Feb 2003 23:15:06 GMT
Message-Id: <200302232315.XAA12273@e3000>
To: olegt@multiconn.com
CC: public-qt-comments@w3.org


   Hello!

   XSLT 1.0 forbids using of disable-output-escaping to generate value of 
   comment, processing instruction or attribute node. XSLT 2.0 WD states the 
   same. What's the reason behind this restriction?


I'm not on the WG but at least for PIs and comments d-o-e isn't really
appropriate as there is no escaping to be disabled. & isn't special
there, 

<x>
<?a &< ?>
<!-- &< -->
</x>

is well formed despite the unescaped &s and <s. Thus a & or < appearing in the
value of these nodes already has to be output by the XSLT serialiser
as if doe was set.


David
Received on Sunday, 23 February 2003 18:15:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:24 GMT