| Subject: Re: returning single result from apply-templates From: Francis Norton <francis@xxxxxxxxxxx> Date: Mon, 09 Oct 2000 17:59:56 +0100 | 
you're probably worked it out already, but try
  <xsl:template match="foo//*[1]/bar">
    <xsl:copy-of select="."/>
  </xsl:template>
Francis.
Sebastian Rahtz wrote:
> 
> 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
-- 
Francis Norton.
why not?
 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
| Current Thread | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Re: returning single result from ap, Alex Albu | Thread | Re: returning single result from ap, David Carlisle | 
| RE: returning single result from ap, Heather Lindsay | Date | RE: returning single result from ap, Kay Michael | 
| Month |