Subject: Re: [xsl] understanding generate-id and node-equality [XSLT 1.0, Saxon 6.5.5] From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Thu, 14 Aug 2008 11:40:16 -0400 |
using XSLT 1.0 and Saxon 6.5.5 I'm wondering whats the actual difference between
<xsl:key name="child-key" match="child" use="parent::*"/>
<xsl:template match="parent" > <xsl:variable name="childs" select="key('child-key', parent::*)"/> ... </xsl:template>
and
<xsl:key name="child-key" match="child" use="generate-id(parent::*)" />
<xsl:template match="parent" > <xsl:variable name="childs" select="key('child-key', generate-id(parent::*))" /> ... </xsl:template>
I think I know what generate-id does,
but what is tested when I use the former expression?
-- Upcoming XSLT/XSL-FO hands-on courses: Wellington, NZ 2009-01 World-wide corporate, govt. & user group XML, XSL and UBL training RSS feeds: publicly-available developer resources and training G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) 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] understanding generate-id an, christoph . naber | Thread | Re: [xsl] understanding generate-id, christoph . naber |
[xsl] understanding generate-id an, christoph . naber | Date | Re: [xsl] understanding generate-id, christoph . naber |
Month |