This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Find position among siblings {Re: Applying template conditionally}
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: Find position among siblings {Re: [xsl] Applying template conditionally}
- From: Xiaocun Xu <xiaocunxu at yahoo dot com>
- Date: Sun, 29 Apr 2001 12:53:05 -0700 (PDT)
- Reply-To: xsl-list at lists dot mulberrytech dot com
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@yahoo.com> 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