Subject: Re: [xsl] Purpose of generate-id index [1] From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 24 Jun 2003 15:51:30 -0400 |
Cheers, Wendell
>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.
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Purpose of generate-id in, Michael Kay | Thread | [xsl] Purpose of generate-id index , B. Tommie Usdin |
Re: [xsl] Purpose of generate-id in, J.Pietschmann | Date | AW: [xsl] evaluate, Michael Paffrath |
Month |