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

RE: Finding parent of the middle child

Subject: RE: Finding parent of the middle child
From: "Brook Ellingwood" <belling@xxxxxxx>
Date: Mon, 20 Jun 2005 15:17:44 -0700
chuparkoff
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@xxxxxxxxxx]
Sent: Monday, June 20, 2005 3:01 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  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

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.