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

Re: xsl:key only checks first child, need to check all

Subject: Re: xsl:key only checks first child, need to check all
From: Patrick Warren <warr0120@xxxxxxx>
Date: Tue, 08 Nov 2005 00:53:21 -0600
Re:  xsl:key only checks first child
Thanks David. That does just what I wanted. Now generate-id finally makes more sense to me. I got rid of
all the // in my stylesheet, since your example showed me well how to use the keys I had set up.


The only thing I don't understand is why you don't use a [1] in order to get the first member of the key:

[generate-id()=generate-id(key('topics',.)[1])] instead of:
[generate-id()=generate-id(key('topics',.))]

I mean, it works how you have it, but I don't get why you don't need to use it.
What exactly is your expression doing?

Thanks for your help,
Patrick

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.