RE: [xsl] XSLT Transform cdata-section-elements split up

Subject: RE: [xsl] XSLT Transform cdata-section-elements split up
From: Junk Junk <youremailisjunk@xxxxxxxxx>
Date: Wed, 9 Jun 2004 08:55:54 -0700 (PDT)
Jarno (et. all),

That was my bad typing.  I didn't have the originall
around any more, so I manually copied/pasted/edited
that previous version.  Originally it did format the
CDATA section perfectly.  Now it does not.  If its a
setting, does anyone know what that is?  Or is this a
bug for XALAN developers?  If so, is that a different
mailing list?  Thanks.

-junk

Here it is fixed up:

BEFORE XALAN/WEBLOGIC UPGRADE:

<AdditionalText><![CDATA["PrimaryAlert~;~|AlertID~;~|~|AlertKey~|xyz/5/4/351/6/20002/NA_chronic~;~|~|TimeStamp~|06/04/2004
12:11:23
CST~;~|Alert~;~|~|Layer~|2~;~|~|CustomerName~|~;~|~|Classification~|NFO~;~|~|Severity~|Major~;~|~|Domain~|METRO~;~|~|NodeOrSwitchName~|xyz~;~|~|Component~|XYZ-T3-12-XYZ
XYZ 5.4~;~|~|Reason~|Fail LOS (Chronic - 2 Failures in
5 minutes)~;~|~|BMPTktID~|~;"]]></AdditionalText>

AFTER THE XALAN/WEBLOGIC UPGRADE:
<AdditionalText><![CDATA["PrimaryAlert~;~|AlertID~;~|~|Al]]><![CDATA[ertKey~|xyz/5/4/351/6/20002]]><![CDATA[/NA_chronic~;~|~|TimeStamp~|06/0]]><![CDATA[4/2004
12:11:23
CST~;~|Alert~;~|]]><![CDATA[~|Layer~|2~;~|~|CustomerName~|~;]]><![CDATA[~|~|Classification~|NFO~;~|~|Sev]]><![CDATA[erity~|Major~;~|~|Domain~|METRO~]]><![CDATA[;~|~|NodeOrSwitchName~|xyz~]]><![CDATA[;~|~|Component~|XYZ-T3-12-XYZ
XY]]><![CDATA[Z 5.4~;~|~|Reason~|Fail LOS
(Chr]]><![CDATA[onic - 2 Failures in 5
minutes)~]]><![CDATA[;~|~|BMPTktID~|~;~;"]]></AdditionalText>




--- Jarno.Elovirta@xxxxxxxxx wrote:
> Hi,
> 
> > Now before the upgrade, I used to get this as my
> > output:
> > 
> >
>
<AdditionalText>CDATA[["PrimaryAlert~;~|AlertID~;~|~|AlertKey~
> 
> Note here that the contents of AdditionalText is not
> inside a CDATA section, it starts with "CDATA[[",
> not with "<![CDATA[".
> 
> >
>
|xyz/5/4/351/6/20002/NA_chronic~;~|~|TimeStamp~|06/04/2004
> > 12:11:23
> >
>
CST~;~|Alert~;~|~|Layer~|2~;~|~|CustomerName~|~;~|~|Classifica
> >
>
tion~|NFO~;~|~|Severity~|Major~;~|~|Domain~|METRO~;~|~|NodeOrS
> > witchName~|xyz~;~|~|Component~|XYZ-T3-12-XYZ
> > XYZ 5.4~;~|~|Reason~|Fail LOS (Chronic - 2
> Failures in
> > 5 minutes)~;~|~|BMPTktID~|~;"]]</AdditionalText>
> 
> And here it ends with "]]", not "]]>". Most probably
> the earilier version of Xalan had a but in the
> serialization of CDATA sections.
> 
> >
>
<AdditionalText><![CDATA["PrimaryAlert~;~|AlertID~;~|~|Al]]><!
> >
>
[CDATA[ertKey~|xyz/5/4/351/6/20002]]><![CDATA[/NA_chronic~;~|~
> > |TimeStamp~|06/0]]><![CDATA[4/2004
> > 12:11:23
> >
>
CST~;~|Alert~;~|]]><![CDATA[~|Layer~|2~;~|~|CustomerName~|~;]]
> >
>
><![CDATA[~|~|Classification~|NFO~;~|~|Sev]]><![CDATA[erity~|M
> >
>
ajor~;~|~|Domain~|METRO~]]><![CDATA[;~|~|NodeOrSwitchName~|xyz
> > ~]]><![CDATA[;~|~|Component~|XYZ-T3-12-XYZ
> > XY]]><![CDATA[Z 5.4~;~|~|Reason~|Fail LOS
> > (Chr]]><![CDATA[onic - 2 Failures in 5
> >
>
minutes)~]]><![CDATA[;~|~|BMPTktID~|~;~;"]]></AdditionalText>
> > 
> > Is it something I'm doing wrong?  A missing
> setting
> > somehow?  Is there a way to make it so CDATA
> doesn't
> > get split up like this?  Perhaps specify a maximum
> > length somehow?  
> 
> No, this must be a yet another but, because there
> are not character sequences that would force the
> CDATA section to be broken into multiple sections.
> i.e. "]]&gt;" or characters that cannot be
> represented in UTF-8 encoding. Have you tried to use
> another XSLT engine (via JAXP API)?
> 
> Cheers,
> 
> Jarno - Neurotic Fish: Bonus Track
> 
>
--+------------------------------------------------------------------
> XSL-List info and archive: 
> http://www.mulberrytech.com/xsl/xsl-list
> To unsubscribe, go to:
> http://lists.mulberrytech.com/xsl-list/
> or e-mail:
> <mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx>
> --+--
> 



	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

Current Thread