Re: [xsl] Inverse of apply-template select

Subject: Re: [xsl] Inverse of apply-template select
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 13 Jan 2011 19:58:57 +0000
On 13/01/2011 19:10, Imsieke, Gerrit, le-tex wrote:

You want to select all children who are not either bookinfo or title: <xsl:apply-templates select="*[not(self::bookinfo or self::title)]" />

or if you are using xslt2, the more readable


select="* except (bookinfo|title)"

also, to the original poster, you never need start an xpath with ./

David

Current Thread