[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Find position among siblings {Re: Applying templat

Subject: Re: Find position among siblings {Re: Applying template conditionally}
From: Xiaocun Xu <xiaocunxu@xxxxxxxxx>
Date: Sun, 29 Apr 2001 12:53:05 -0700 (PDT)
position siblings
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.