xsl-list
[Top] [All Lists]

[xsl] understanding generate-id and node-equality [XSLT 1.0, Saxon 6.5.5]

2008-08-14 10:19:47
Hello,

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?

Thank you in advance for any insight.

Christoph Naber 

Daimler AG 
Abt. ITP/DC, Diplomand

Tel.: +49 (0) 70 31 / 90-6 62 16
Mail: christoph(_dot_)naber(_at_)daimler(_dot_)com

If you are not the intended addressee, please inform us immediately that you 
have received this e-mail in error, and delete it. We thank you for your 
cooperation.  
--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>