Subject: Re: [xsl] question on using generate-id with the KEY function From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Thu, 21 Aug 2008 16:14:12 -0400 |
What is the difference between the following 2 lines (Line 1 vs Line 2) (I know what these lines do, but i dont know HOW. Please find related XML at the end of the file )----
Line 1
<xsl:apply-templates select="*[@partNum and generate-id(.)=generate-id(key('parts', @partNum))]" />
Line 2
<xsl:apply-templates select="*[generate-id(.)=generate-id(key('parts', @partNum))]" />
ALSO what does this line do
-- generate-id(.)=generate-id(key('parts', @partNum)) ---
probably retrieves a part number only once but I don't understand how...
BUT how is the line different from
-- generate-id(.)=generate-id(key('parts', @partNum)[1]) ---
-- Upcoming XSLT/XSL-FO hands-on courses: Wellington, NZ 2009-01 Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] question on using generate-id, Mattoo, Utpal | Thread | [xsl] variable scope, Greg Fausak |
Re: [xsl] Oxygen editor very slow, Robert Koberg | Date | Re: [xsl] Oxygen editor very slow, Andrew Welch |
Month |