xsl-list
[Top] [All Lists]

Re: [xsl] Whitelist preceding siblings

2011-04-15 08:54:15
Fredrik Bengtsson wrote:

I've tried something like the following with no luck:

<xsl:template match="x">  ...
<xsl:template match="x[preceding-sibling::*][not(self::a or self::b or 
self::c)]">  ...

<xsl:template match="x[preceding-sibling::*[not(self::a or self::b or self::c)]]">
should match any "x" elements having one of the "unwanted" siblings.


--

        Martin Honnen
        http://msmvps.com/blogs/martin_honnen/

--~------------------------------------------------------------------
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>