Subject: Find position among siblings {Re: [xsl] Applying template conditionally} From: Xiaocun Xu <xiaocunxu@xxxxxxxxx> Date: Sat, 28 Apr 2001 12:53:00 -0700 (PDT) |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Applying template conditi, Dan Diebolt | Thread | RE: Find position among siblings {R, Michael Kay |
Re: [xsl] nonbreaking space error w, David Carlisle | Date | Re: Find position among siblings {R, Dan Diebolt |
Month |