This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: Re: Exclude elements from apply-templates?


<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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]