xsl-list
[Top] [All Lists]

RE: Question about the key() function

2005-05-13 16:06:43

One more point. I re-wrote the key() function within the
<xsl:apply-templates> element.

Original
--------
<xsl:apply-templates select="key('x',addressbook/address/zip)" />

Modified
--------
<xsl:apply-templates select="addressbook/address[key('x', zip)]" />

This time it worked.

Which means that your processor is correctly eliminating duplicates in the
result of a path expression, but is incorrectly failing to remove them in
the result of key().

Michael Kay
http://www.saxonica.com/



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