Re: Find position among siblings {Re: [xsl] Applying template conditionally}

Subject: Re: Find position among siblings {Re: [xsl] Applying template conditionally}
From: Xiaocun Xu <xiaocunxu@xxxxxxxxx>
Date: Sun, 29 Apr 2001 12:53:05 -0700 (PDT)
Hi, Dan:

  Thanks for trying to help, but you are not really
answering my question.  I know position() should be
used, I just don't know how to use it in the
particular situation I am in.
  As the example I have given:
<xsl:variable name="LineItemHeader"
select="book/sheet/range/row[cell[1] = 'LineItemName'
or substring(cell[1], 2) = 'LineItemName']"/>
  How to find the position of this header row and set
it into another variable?  Something like:
<xsl:variable name="posLineItemHeader"
select="book/sheet/range/row[cell[1] = 'LineItemName'
or substring(cell[1], 2) =
'LineItemName']/position()"/>?

Thanks,
Xiaocun


--- Dan Diebolt <dandiebolt@xxxxxxxxx> wrote:
> Use position() to find elements location among the
> node-set.
> 
> Regards,
> 
> Dan
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great
> prices
> http://auctions.yahoo.com/
> 
>  XSL-List info and archive: 
> http://www.mulberrytech.com/xsl/xsl-list
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

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


Current Thread