xsl-list
[Top] [All Lists]

RE: [xsl] Whitelist preceding siblings

2011-04-15 10:12:54
Wow, dunce hat of the day to me for not even realizing that nested [] are 
valid. This opens up some new possibilities. Thanks a lot for all of your 
prompt answers!


-----Original Message-----
From: Martin Honnen [mailto:Martin(_dot_)Honnen(_at_)gmx(_dot_)de] 
Sent: den 15 april 2011 15:54
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Whitelist preceding siblings

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



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