xsl-list
[Top] [All Lists]

Re: [xsl] Inverse of apply-template select

2011-01-13 13:59:11
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


--~------------------------------------------------------------------
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(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>