Re: [xsl] Selectively convert subordinate elements to text

Subject: Re: [xsl] Selectively convert subordinate elements to text
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Fri, 25 May 2007 08:50:07 +0100
On 5/25/07, Jeff Sese <jsese@xxxxxxxxxxxx> wrote:
Use an empty template rule for the element HIDDEN then apply-templates
to the child of widget.

<xsl:template match="widget">
    <xsl:apply-templates/>
</xsl:template>
<xsl:template match="HIDDEN"/>

Another way is:


<xsl:apply-templates select="/widget/node()[not(self::HIDDEN)]"/>

cheers
andrew

Current Thread