Andy Chambers wrote:
It does, thanks. So what do people usually do when they want to key
an element on multiple
attributes? Do they just make a string with some kind of separator
breaking up the attributes?
Isn't there a chance of this failing if the character used for the
separator is used in one or more
of the attributes?
<xsl:key match="name"
use="string-join((@oid, @parent-oid), '|')"/>
Do you want one key value that is the concatenation of the two attribute
values?
Or do you want each attribute value to serve as a key?
In the latter case you can simply do
use="@oid, @parent-oid"
In the first case you will need to concatenate with a separator
character which you know will not be in any attribute value.
--
Martin Honnen
http://msmvps.com/blogs/martin_honnen/
--~------------------------------------------------------------------
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>
--~--