[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: Mark Nahabedian <naha@xxxxxxxxxx>
Date: Fri, 16 Nov 2001 10:51:09 -0500
breakers abc
It was a pleasant suprise to see some of my code cited.


Jeni Tennison writes:

[...]

 > So I'd adapt the keys to include information about the parent
 > circuit-breaker-panel of the circuit-breaker, as follows:
 > 
 > <xsl:key name="breakers-by-column" match="b:circuit-breaker"
 >          use="concat(generate-id(parent::b:circuit-breaker-panel),
 >                      ':', @column)" />
 > <xsl:key name="breakers" match="b:circuit-breaker"
 >          use="concat(generate-id(parent::b:circuit-breaker-panel),
 >                      @row, ':', @column)" />
 > 
 > If a circuit-breaker-panel was given an ID of 'abc' then you could get
 > the circuit breaker in the first cell in the first row with:
 > 
 >   key('breakers', 'abc:1:1')

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

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?



 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.