XML.com: XML From the Inside Out

XML.comWebServices.XML.comO'Reilly Networkoreilly.com
  Articles | Weblogs | Newsletter | Safari Bookshelf
advertisement

Article:
 Strange Transformations
Subject: Why not use "disable-output-escaping" instead?
Date: 2002-04-25 08:09:36
From: Dan Cederholm

I've been dealing with large CDATA sections containing HTML and have handled like this:


<xsl:value-of select="." disable-output-escaping="yes"/>


This will preserve any HTML tags within CDATA sections and works fine in Sablotron and Xalan. Seems wrong to me to change the output of the whole document to "text".


Dan


Previous Message Previous Message   Next Message Next Message

Sponsored By:


Contact Us | Our Mission | Privacy Policy | Advertise With Us | | Submissions Guidelines
Copyright © 2008 O'Reilly Media, Inc. | (707) 827-7000 / (800) 998-9938