|
Subject: RE: [xsl] Multiple CDATA tags...again From: mylistaddress@xxxxxxxxxx Date: Wed, 11 May 2005 05:39:50 -0700 (PDT) |
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 &quot;We
> respectfully Wish the health of the great leader
> [yo'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 "We
> ]]><![CDATA[ Respectfully Wish
> Hea]]><![CDATA[lth of the great leader
> ]]><![CDATA[ [yo'ndude] Brother ]]><![CDATA[
> Big John Il] ]]>
> </TEXT>
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] Multiple CDATA tags...aga, Michael Kay | Thread | RE: [xsl] Multiple CDATA tags...aga, Michael Kay |
| Re: [xsl] xsl:apply-templates behav, Mukul Gandhi | Date | Re: [xsl] A community project, blog, Bruce D'Arcus |
| Month |