![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: CDATA amd xsl [Thread Next] Re: CDATA amd xslTo: NULL Date: 9/19/2007 7:36:00 AM On Sep 19, 10:07 am, Martin Honnen <mahotr...@yahoo.de> wrote: > jen_desi...@hotmail.com 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/ That worked perfectly!!! Thanks for all your help. Jen | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||
|
