xsl-list
[Top] [All Lists]

Re: [xsl] Selectively convert subordinate elements to text

2007-05-25 00:50:27
On 5/25/07, Jeff Sese <jsese(_at_)asiatype(_dot_)com> 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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>