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

XSLT Transform cdata-section-elements split up

Subject: XSLT Transform cdata-section-elements split up
From: Junk Junk <youremailisjunk@xxxxxxxxx>
Date: Tue, 8 Jun 2004 10:51:59 -0700 (PDT)
cdata section elements
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/ 

Current Thread

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.