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

RE: Selecting nested unique values, Muench approach no

Subject: RE: Selecting nested unique values, Muench approach not a good fit?
From: "Conal Tuohy" <conalt@xxxxxxxxxxxxxxx>
Date: Thu, 21 Nov 2002 17:41:16 +1300
a nested approach
Chris - it seems to me the Muenchian approach will serve you well. You are
on the right track there. You could define a key like this:

<xsl:key
	name="chunk-seeds"
	match="seed"
	use="concat(ancestor::chunk/name,.)"
/>

..so that the index includes the seed and also the chunk's name. Then the
seeds inside different chunks would have a unique index and wouldn't
interfere with each other.

Warning! Untested! :-)

Con


> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of
> chrislott@xxxxxxxxxxx
> Sent: Thursday, 21 November 2002 16:30
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Selecting nested unique values, Muench approach not a
> good fit?

> I read about and tried the Muench approach using xsl:key, the
> key function,
> and generate-id to select the first node that matches a
> particular key value
> so as to avoid visiting duplicates.

<snip/>

> It seems that if the seed names could be made unique across
> chunks, the
> Muench approach might work.  I.e., if the first chunk has seed names
> "chunk1-0", "chunk1-1", etc. and the next chunk has seed names
> "chunk2-0", "chunk2-1", etc.  If this is the only way to


 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.