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

Purpose of generate-id index [1]

Subject: Purpose of generate-id index [1]
From: "B. Tommie Usdin" <btusdin@xxxxxxxxxxxxxxxx>
Date: Tue, 24 Jun 2003 15:25:50 -0400
intitle id index
>Date: Tue, 24 Jun 2003 12:48:38 -0500
>From: John Sharp <jsharp@xxxxxx>
>Organization: Texas Instruments
>To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>Subject: Purpose of generate-id index [1]
>
>Hello, I have been successfully using the generate-id() function
>with a key, without fully understanding the purpose of the [1]
>index construct.
>
>One explanation is given - "Given a node-set, generate-id
>returns an ID for the node in the node-set that occurs first
>in document order" (O'Reilly XSLT)
>
>e.g.
>/TDLfile[generate-id(.)=generate-id(
>          key('TimingByGroup',concat(@type,'::',@period))[1])]
>
>In general terms why is the [1] index present.
>
>BTW, as I'm on the digest list, a CC courtesy copy would be
>appreciated.
>
>Kind regards,
>John.
>--
> Texas Instruments Inc  Product Development    tel:214 480 4253
> PO BOX 660199          MS: 8645 FORE/A-3101   fax:214 480 4401
> 12500 TI Boulevard     Dallas, TX 75266-0199      
>     nawk nawk,  Who's there ?   Aho, Weinberger and Kerninghan.



 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.