Re: [xsl] Re: Re: Exclude elements from apply-templates?

Subject: Re: [xsl] Re: Re: Exclude elements from apply-templates?
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Fri, 21 Jun 2002 23:34:28 +0200
<xsl:apply-templates select="*[not(self::title) or not(name()
^^^^

The above is equivalent to:

<xsl:apply-templates select="*"/>

because
 not(x) or not(y)

is always true, when x != y and of course x and y are booleans.

Oh, 2 bugs in one line! What I wanted to write was <xsl:apply-templates select="*[not(self::title or name()='subtitle')]"/>

Joerg


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread