On 12 December 2012 15:01, Szabo, Patrick (LNG-VIE)
<patrick(_dot_)szabo(_at_)lexisnexis(_dot_)at> wrote:
Hi again,
Okay I followed your advice and now I got this:
<xsl:variable name="special"
select="*[not(ancestor-or-self::span[@class='heading' and
count(preceding::span[@class='heading']) = 0])][self::p or self::ul or
self::span[not(@class='heading' and count(preceding::span[@class='heading'])
= 0)]][following::text()[starts-with(.,'Zum aktuellen Rechtsstand')] and
ancestor::div[@class='comm.body'] and .//text()][1]"/>
<xsl:template match="*[. intersect $special]" priority="20">
***something happens***
</xsl:template>
While having that cumbersome xpath as a match works, this does not. It just
doesn't match.
Did i do anything wrong ?
select="*
If its a global variable, that will only select the root element.
Needs to be //*
--
Andrew Welch
http://andrewjwelch.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>
--~--