This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: CDATA back to its original shape




> so if you want to output it unescaped you can (and this may be wrong
> from the point of view of xsl gurus)
> <xsl:text disable-output-encoding="yes"><cdata ...></xsl:text>

 You meant <!<[CDATA not <cdata there I think, but beware 
XSL engines are _not_ obliged to support disable-output-encoding,
it is only a hint that you might like it output that way.

But why would anyone want to write 

 <xsl:text disable-output-encoding="yes"><![CDATA[ <foo>  </foo>]]></xsl:text>

which is a horrible kludge even when it works, when you can
far more simply write

  <foo>  </foo>

and just output the foo node as a literal result element?

David


_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]