[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Content of Script element getting wrapped by CDATA
FYI: In the comment in the template below, I meant to say: <!--Note: The 
 characters at the end of the CDATA start tag and before the CDATA end tag are important because the script text may *NOT* begin and end with new lines.--> Darcy On Wed, Oct 22, 2008 at 5:55 PM, Darcy Parker <darcyparker@xxxxxxxxx> wrote: > <xsl:template match="script | style"> > <xsl:copy> > <xsl:apply-templates select="@*"/> > <!--Note: The 
 characters at the end of the CDATA > start tag and before the CDATA > end tag are important > because the script text may begin and end with new lines.--> > <xsl:value-of disable-output-escaping="yes" > > select="concat('//<![CDATA[
',text(),'
//]]>')"/> > </xsl:copy> > </xsl:template>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|