xsl-list
[Top] [All Lists]

Re: applying templates to all but ...

2004-09-24 02:36:19
Hi Bruce,

> I (think I) need to apply-templates to all elements in a namespace
> except for one: cs:creator.  So I've tried this (and a ton of other
> options on the relevant templates:
>
>         <xsl:apply-templates
> select="$style-biblio/cs:reftype[(_at_)name='book']/cs:*[not(cs:creator)]">
>           <xsl:with-param name="source" select="."/>
>         </xsl:apply-templates>

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)]">

otherwise you test for a cs:creator child of the matched node.

Hope that helps,
George
-----------------------------------------------
George Cristian Bina
<oXygen/> XML Editor & XSLT Editor/Debugger
http://www.oxygenxml.com