Re: [xsl] Re: filtering problem

Subject: Re: [xsl] Re: filtering problem
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Sat, 19 Jun 2010 23:24:13 +0100
On 19/06/2010 19:12, Adrian Herscu wrote:
<xsl:template match="command[@failed=true()]">

You need to make sure this template only fires for the first command with @failed=true. For example

<xsl:template match="command[@failed=true()][generate-id(.)=generate-id(@firstFailure)]">

But why are you using XSLT 1.0 with vendor extensions? If you can use Xalan, then you are almost certainly in an environment where you could use XSLT 2.0.

Michael Kay

Current Thread