This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: returning single result from apply-templates


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]