Subject: Re: [xsl] weird key-nodeset behavior From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 25 Nov 2004 15:48:20 GMT |
-if i try to group on all elements with the key definition, it works, e.g.: <xsl:for-each select="//dovizler[generate-id(.) = generate-id(key('dkey',key)[1])]"> -but if i try to do the grouping on a nodeset, it does not work, e.g.: <xsl:for-each select="$mydovizler[generate-id(.) = generate-id(key('dkey',key)[1])]"> where $mydovizler is a nodeset composed of 'dovizler' elements. The first is also doing grouping on a nodeset, the nodeset selected by //dovizler $mydovizler[generate-id(.) = generate-id(key('dkey',key)[1])]" selects those nodes in $mydovizler that have the property that they are the first node with their key value value in the whole document. So if there is some key value for which the first node is not in this set then no nodes with thatkey will be selected. David ________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] weird key-nodeset behavior, Osman Çınar Eren | Thread | RE: [xsl] weird key-nodeset behavio, Osman Çınar Eren |
[xsl] weird key-nodeset behavior, Osman Çınar Eren | Date | RE: [xsl] weird key-nodeset behavio, Osman Çınar Eren |
Month |