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

RE: Multiple CDATA tags...again

Subject: RE: Multiple CDATA tags...again
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 11 May 2005 14:50:35 +0100
RE:  Multiple CDATA tags...again
Your source document has an attribute called outputName and your stylesheet
is testing for one called outputFieldName. I don't believe you are getting
this output from this input. 

Michael Kay
http://www.saxonica.com/
 

> -----Original Message-----
> From: mylistaddress@xxxxxxxxxx [mailto:mylistaddress@xxxxxxxxxx] 
> Sent: 11 May 2005 13:40
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  Multiple CDATA tags...again
> 
> On Tue, 10 May 2005 15:09:23 +0000, "Aron Bock" wrote:
> 
> > 
> > I believe the processor distributed with JDK *is*
> > xalan.  Perhaps if you 
> > would post a sample; as I mentioned previously, last
> > time around I, at 
> > least, didn't see an XML sample in your post.
> > 
> > Regards,
> > 
> 
> Hi,
> It was in a previous post. Here it is again.
> 
> > Here is a portion of the XML response from STAR XML:
> > <Field outputName="TEXT">
> > 2010 &amp;quot;We
> > respectfully Wish the health of the great leader
> > [yo&apos;ndude] Comarade Big John Il 
> > </Field>
> > 
> > Here is a portion of the XSL dealing with the TEXT
> > element:
> > <xsl:output method="xml" omit-xml-declaration="no"
> > indent="yes" cdata-section-elements="TEXT" />
> > <xsl:strip-space elements="*" />
> > ...
> > <xsl:template match="Field">
> > <xsl:if test="contains ('TEXT', @OutputFieldName)">
> > <xsl:element name="{@OutputFieldName}">
> > <xsl:apply-templates/>
> > </xsl:if>
> > </xsl:template>
> > 
> > Resulting XML:
> > <TEXT>
> > <![CDATA[2010 &quot;We
> >      ]]><![CDATA[       Respectfully Wish
> > Hea]]><![CDATA[lth of the great leader
> >     ]]><![CDATA[      [yo'ndude] Brother ]]><![CDATA[
>  
> > Big John Il]      ]]>
> > </TEXT> 

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.