Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Have html tag inside XML? >Thread Next - Re: Have html tag inside XML? Re: Have html tag inside XML?To: NULL Date: 4/5/2006 11:34:00 AM "RedHair" <redhair@m...> wrote in message news:eaBiWYIWGHA.3660@T...... > I use xlst file to transform a xml file into html page, > however if a string in xml file include html tag, the > text between a html tag won't be read. > Ex: <product> <b>productname</b>is a good product </product> > How to solve this issue? > Instead of using:- <xsl:value-of select="product" /> Use:- <xsl:for-each select="product"> <xsl:apply-templates select="* | node()" mode="clone" /> </xsl:for-each> With this template present:- <xsl:template match="@* | * | node()" mode="clone"> <xsl:copy> <xsl:apply-templates select="@* | * | node()" mode="clone"/> </xsl:copy> </xsl:template> Anthony | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
