xsl-list
[Top] [All Lists]

Re: applying templates to all but ...

2004-09-24 05:08:22
Hi Bruce,

I did not follow all your post, but this looks like it should be:
select="$style-biblio/cs:reftype[(_at_)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[(_at_)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