[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: using step or following-sibling?
Bit late respons, but this riddle resurfaced in my mind, looking over the postings of the last few
days (many as usual!)...
Though a good suggestion by Wendell (as usual) to use the way xsl:value works, there is something unsatisfactory about that solution. It still leaves the question: is there an alternative for position()? The only answer I can come up with: count(). Unfortunatily, one will have to build a document fragment with the following-siblings and then get all childs which have count(preceding-siblings) equal to the position you are looking for. Not very elegant, nor very flexibel, and it will require the node-set function in XSLT 1... Other suggestions? ;-) Grt(z) JBryant@xxxxxxxxx wrote: Isn't row[1] short for row[position()=1]? Since he's trying to avoid the position() function, isn't that a problem?
http://www.daidalos.nl/ tel:+31-(0)79-3316961 fax:+31-(0)79-3316464 GPG: 1024D/12DEBB50
|
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
|