xsl-list
[Top] [All Lists]

XSLT Transform cdata-section-elements split up

2004-06-08 10:51:59
Hello all,

I wasn?t sure if this was the place to post this
question, if it isn?t, please let me know the right
place to post it.  I?m having trouble with a
previously working XSLT transform.  We?ve upgraded
from weblogic 6.1 to weblogic 8.1 and now I?m seeing
an error in my servlet.  My servlet uses an XSLT
Stylesheet to transform incoming XML from one form to
another.  I use the "cdata-section-elements" in the
<xsl:output> section of the stylesheet, to ensure that
one element is in a CDATA section.  And while this
used to work just fine, now I am seeing the CDATA
section split up into multiple CDATA sections of fixed
length.  The data will probably explain it better than
I can.  So here goes:

The stylesheet is long so I?ve copied only relevant
portions:

...
  <xsl:output
     method="xml"
     indent="yes"
     cdata-section-elements="AdditionalText"
  />
...
<xsl:element name="AdditionalText"><xsl:value-of
select="$AddTxt"/></xsl:element>




Now before the upgrade, I used to get this as my
output:

<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 upgrade, I now see this:

<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>



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?  

My version info is that I think I?m now using Xalan
2.4.1 to do the transform, before it was a much
earlier version.  

Anyway, any help would be appreciate, if you need more
information from me, please let me know.


-junk


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