xsl-list
[Top] [All Lists]

RE: split cdata with xsl

2003-05-30 07:25:57
using msxml yeilds

<?xml version="1.0" encoding="ISO-8859-1"?>
<CONTENT TYPE="text/html"><![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>]]></CONTENT>

need to look up the process conventions, but I think xalan might be 
interpreting the spec wrong.

gl, jim fuller

-----Original Message-----
From: Sebastien GRUHIER [mailto:sgruhier(_at_)qarbon(_dot_)com]
Sent: 30 May 2003 14:52
To: XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] split cdata with 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

This e-mail and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you are not the intended recipient please contact the sender immediately. Any 
disclosure, copying, distribution or any other use of this communication is 
strictly prohibitedand may be unlawful. Stuart Lawrence Marketing 
Communications Limited reserves the right to monitor and intercept 
communications for unlawful business purposes.

This also confirms that this message has been swept for viruses, although 
Stuart Lawrence Marketing Communications Limited accepts no responsibility for 
any loss or damage resulting directly or indirectly from the use of this email 
or contents.

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



<Prev in Thread] Current Thread [Next in Thread>