[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

split cdata with xsl

Subject: split cdata with xsl
From: Sebastien GRUHIER <sgruhier@xxxxxxxxxx>
Date: Fri, 30 May 2003 15:52:21 +0200
cdata in xsl
Hi

I'm trying to convert an XML file to another XML file through a XSL
file with xalan. My input file has only one CDATA section but the
output CDTA is split in mutliple CDATA (size fixed). I'd like to have
only one CDATA. I guess there is a way to specify the chunk size but I
dont know how.
Any idea?

Thank you

Here is my input xml:
<?xml version="1.0" ?> <?xml:stylesheet type="text/xsl" href="input.xsl"?>


<text><![CDATA[<p align="left"><font size="12"></font><font size="12"
face="tahoma" color="#000000">un</font></p><p align="left"><font
size="12"><br></font></p>]]></text>

My XSL File:
<?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="ISO-8859-1"
cdata-section-elements="CONTENT text" indent="yes" />


<xsl:template match="/">
<CONTENT TYPE="text/html">
<xsl:value-of select="text"/>
</CONTENT>
</xsl:template >

</xsl:stylesheet >

and The output:
<?xml version="1.0" encoding="ISO-8859-1"?>
<CONTENT TYPE="text/html"><![CDATA[<p align="left"><font
size="12">]]><![CDATA[</font><font size="12" face="tah]]><![CDATA[oma"
color="#000000">un</font></]]><![CDATA[p><p align="left"><font
size="12]]><![CDATA["><br></font></p>]]></CONTENT>




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



Current Thread
  • split cdata with xsl
    • Sebastien GRUHIER - Fri, 30 May 2003 09:53:19 -0400 (EDT) <=
      • <Possible follow-ups>
      • Jim Fuller - Fri, 30 May 2003 10:27:28 -0400 (EDT)

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.