xsl-list
[Top] [All Lists]

RE: [xsl] key declarations (using a sequence constructor)

2009-10-07 07:33:43
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?


Yes, and yes.

Unicode gives a wide range of characters to choose from, including the
Private Use area.

An alternative approach is to create separate keys one for each attribute,
and then to search using

key('ka', @a) intersect key('kb', @b) 

Regards,

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



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