Subject: XSLT Transform cdata-section-elements split up From: Junk Junk <youremailisjunk@xxxxxxxxx> Date: Tue, 8 Jun 2004 10:51:59 -0700 (PDT) |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
ANN: Exchanger XML Editor V2.0 incl, Gabriel McGoldrick | Thread | Lookup question -- attempt 3, Mir Farooq Ali |
AW: [xsl] follow-up: relative URIs, christof.hoeke | Date | Lookup question -- attempt 3, Mir Farooq Ali |
Month |