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

Find position among siblings {Re: Applying template co

Subject: Find position among siblings {Re: Applying template conditionally}
From: Xiaocun Xu <xiaocunxu@xxxxxxxxx>
Date: Sat, 28 Apr 2001 12:53:00 -0700 (PDT)
find position r list
Very much appreciate for the effort you are putting in
although it was not what I was asking for originally. 
I think I thoroughly confused you by now and I really
didn't meant it :(  Sorry :(

I think instead trying to describe the entire problem
and try to find the most elegent way to resolve it, I
will stick with a small key problem that can help
implement one of the solution I am considering.

The key problem I have is: how to find the position of
an element among its siblings?  I have a node-set
variable declared like:
<xsl:variable name="LineItemHeader"
select="book/sheet/range/row[cell[1] = 'LineItemName'
or substring(cell[1], 2) = 'LineItemName']"/>

And I want to find its location among all the row
elements, how should I do it?

Much thanks,
Xiaocun

--- Dan Diebolt <dandiebolt@xxxxxxxxx> wrote:
> I simplified your problem to just transforming your
> cell's
> children & attributes to attributes of row. My
> solution 
> is a bit inelegent but I still don't understand what
> you 
> want done with all of the ExtendedAttribute pieces,
> what
> you want the attributes named or if you have to
> dynamically
> create the attribute names.
> 
> 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


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.