This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Find position among siblings {Re: Applying template conditionally}


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]