[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Find position among siblings {Re: Applying templat
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|