This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: returning single result from apply-templates
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: returning single result from apply-templates
- From: Heather Lindsay <heather dot lindsay at Trifolium dot com>
- Date: Mon, 9 Oct 2000 12:57:48 -0400
- Reply-To: xsl-list at mulberrytech dot com
<xsl:apply-templates select="foo/x[1]/bar"/>
-----Original Message-----
From: Sebastian Rahtz
[mailto:sebastian.rahtz@computing-services.oxford.ac.uk]
Sent: Monday, October 09, 2000 11:37 AM
To: xsl-list@mulberrytech.com
Subject: returning single result from apply-templates
If I do
<xsl:apply-template select="foo//bar[1]"/>
I get mutltiple results from a tree
<foo>
<x><bar/></x>
<x><bar/></x>
<x><bar/></x>
</fo>
because each <bar> is #1 in its sequence, whereas I really only want
the first <bar> from the result sequence.
I must be being dense today, but I dont see how to get what I want.
Sebastian
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list