Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - XSLT - removing a tag from within text >Thread Next - Re: XSLT - removing a tag from within text Re: XSLT - removing a tag from within textTo: NULL Date: 6/17/2009 1:19:00 PM gwoodhouse@g... wrote:
> What i have is this xml:
> <node>
> <start_time>00:00:<span class="hit">11</span></start_time>
> </node>
>
> and i just want it to output:
> 00:00:00
This is easy:
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="text"/>
<xsl:template match="/">
<xsl:apply-templates select="node/start_time"/>
</xsl:template>
</xsl:stylesheet>
--
Martin Honnen
http://msmvps.com/blogs/martin_honnen/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
