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 4:40:00 AM Ok, so, i can't include the whole code or else my company would beat
the hell out of me. Here is a more complete and realworld snippet:
<transcript>
<chapter>
<chapter_hitcount><![CDATA[1 hit]]></chapter_hitcount>
<start_time><![CDATA[01:11:04]]></start_time>
<end_time><![CDATA[01:<span class="hit">22</span>:45]]></end_time>
<abstract> You can see here how you would want <span
class="hit">22</span> to be displayed</abstract>
</chapter>
</transcript>
xslt:
<xsl:template match='chapter'>
<span class="timespan">
(<xsl:apply-templates select="start_time"/> - <xsl:apply-templates
select="end_time"/>)
</span>
<div class="abstract">
<span class="abstractLead">Summary:</span> <xsl:apply-templates
select="abstract"/>
</div>
</xsl:template>
In this example i would want the output to display the "abstract"
output with the span tag, i would want the "end_time" tag to display
without the <span> tag.
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
