Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: strip tags of a subtree [Thread Next] Re: strip tags of a subtreeTo: NULL Date: 6/4/2004 4:49:00 PM Brian Peddle wrote: > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > version="1.0"> > <xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/> > > <xsl:template match="/"> > <xsl:apply-templates select="description"/> > </xsl:template> > > <xsl:template match="/"> > Value with no tags: > <xsl:call-template name="strip-tags"> > <xsl:with-param name="text" select="."/> > </xsl:call-template> > > </xsl:template> > > <xsl:template name="strip-tags"> > <xsl:param name="text"/> > <xsl:choose> > <xsl:when test="contains($text, '<')"> I'm just wondering that elements can be processed like text. Anyway it DOES function in my case for several tested documents. I should have figure out this on my own. Thank you for help you saved me a lot of time. And you know time is brain! :o) Greets Thomas | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
