![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: CDATA amd xsl >Thread Next - Re: CDATA amd xsl Re: CDATA amd xslTo: NULL Date: 9/19/2007 4:07:00 PM
jen_designs@h... wrote:
>> <xsl:template match="cc//*" mode="serialize">
>> <xsl:text><</xsl:text>
>> <xsl:value-of select="name()"/>
>> <xsl:text>></xsl:text>
>> <xsl:apply-templates/>
>> <xsl:text></</xsl:text>
>> <xsl:value-of select="name()"/>
>> <xsl:text>></xsl:text>
>> </xsl:template>
> The above code works, but it strips the <b></b>. and looks like:
>
> <cc><![CDATA[Text goes here<u>Underlined and Bold Text</u>]]></cc>
>
> How can I write a template that would incorporate the <b></b>
I think the template just needs a slight change
<xsl:template match="cc//*" mode="serialize">
<xsl:text><</xsl:text>
<xsl:value-of select="name()"/>
<xsl:text>></xsl:text>
<xsl:apply-templates mode="serialize"/>
<xsl:text></</xsl:text>
<xsl:value-of select="name()"/>
<xsl:text>></xsl:text>
</xsl:template>
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||
|
