RE: returning single result from apply-templates

Subject: RE: returning single result from apply-templates
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Mon, 9 Oct 2000 18:35:53 +0100
> If I do
> 
>  <xsl:apply-template select="foo//bar[1]"/>
> 
> I get mutltiple results ...
> because each <bar> is #1 in its sequence, whereas I really only want
> the first <bar> from the result sequence.

Do select="(foo//bar)[1]"

Mike K


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread