-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
________________________________________________________________________
--~------------------------------------------------------------------
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>
--~--