Re: [xsl] applying templates to all but ...

Subject: Re: [xsl] applying templates to all but ...
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Fri, 24 Sep 2004 13:08:22 +0100
Hi Bruce,

I did not follow all your post, but this looks like it should be:
select="$style-biblio/cs:reftype[@name='book']/cs:*[not(self::cs: creator)]">

Hah! That does it; thanks!

Alternatively, since you're using XSLT 2.0, you could do:


  select="$style-biblio
            /cs:reftype[@name = 'book']
              /(cs:* except cs:creator)"

The (cs:* except cs:creator) selects all child elements in the cs namespace, and then removes from that sequence the cs:creator child elements. It's slightly more understandable than using the self:: axis, I think.

Cheers,

Jeni
--
Jeni Tennison
http://www.jenitennison.com

Current Thread