xsl-list
[Top] [All Lists]

RE: Finding parent of the middle child

2005-06-20 15:17:44
Actually, it's version="1.0"

(//rec_gear_sec/*)[$gearMid] is returning the very first child, even
though $gearMid returns 34. I wasn't even sure if that syntax would be
allowed in 1.0.


-----Original Message-----
From: Sam D. Chuparkoff [mailto:sdc(_at_)sadach(_dot_)org] 
Sent: Monday, June 20, 2005 3:01 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Finding parent of the middle child

....snip....

Quick pointer. version="2.0", right?

What you're looking for is:

(//rec_gear_sec/*)[$gearMid]

I also, against my better judgement, found it tempting to disbelieve the
spec about dynamic context sometimes until I realized how easy it is to
manipulate sequences.

sdc



--~------------------------------------------------------------------
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>
--~--


--~------------------------------------------------------------------
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>
--~--