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

Subject: Re: [xsl] applying templates to all but ...
From: George Cristian Bina <george@xxxxxxx>
Date: Fri, 24 Sep 2004 12:36:19 +0300
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[@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[@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



--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx>
--+--

Current Thread