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(_at_)s-s-t(_dot_)com wrote:
Isn't row[1] short for row[position()=1]? Since he's trying to avoid the
position() function, isn't that a problem?
I'm curious: What issue do you have with the position function, Matt?
Jay Bryant
Bryant Communication Services
Geert Josten <Geert(_dot_)Josten(_at_)daidalos(_dot_)nl>
12/03/2004 04:21 PM
Please respond to
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
To
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
cc
Subject
Re: [xsl] using step or following-sibling?
<xsl:value-of select="following-sibling::row[1]/emp_nm" />
Cheers,
Geert
--
Geert(_dot_)Josten(_at_)Daidalos(_dot_)nl
IT-consultant at Daidalos BV, Zoetermeer (NL)
http://www.daidalos.nl/
tel:+31-(0)79-3316961
fax:+31-(0)79-3316464
GPG: 1024D/12DEBB50
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--