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

Re: ordering and iteration problem

Subject: Re: ordering and iteration problem
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Fri, 16 Nov 2001 16:11:05 +0000
Re:  ordering and iteration problem
Hi Mark,

> I take it that the generate-id() is needed because there is no other
> way to test for node identity?

Yes - there's no other way of testing for node identity unless there's
something about the node that gives it an identity (such as an ID
attribute). The 'var' attribute looked promising, but it wasn't
present on the nested circuit-breaker-panel elements in Hector's
example.

> Rather than using concat() to generate a compound key, would it also
> work to use the same key as before but then select from the
> resulting node-set only the circuit-breaker with the right parent?

Yes, it would. That way you end up doing more comparisons - for every
circuit-breaker in a particular position you'd have to test whether it
comes from each of the possible circuit-breaker-panels, so it's likely
to be less efficient that including the generated ID in the key. But
then you might not care about that, and even if you did you should
test to see whether it actually made any impact on the transformation
as a whole with your particular processor/environment/source etc.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.