Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: 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 6:25:00 AM So, basically, i want this:
end_time contents: 00:00:<span class="hit">11</span>
<xsl:variable name="safeend">
<xsl:call-template name="removeSpan">
<xsl:with-param name="variable" select="end_time"/>
</xsl:call-template>
</xsl:variable>
<xsl:template name="removeSpan">
<xsl:param name="variable"/>
<xsl:value-of select="fn:substring-before($variable, '<')"/>
</xsl:template>
with safeend being: 00:00:11
Yes it's in a CDATA tag but that doesn't seem to change anything at
all.
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
