you switched base half way through that expression:-)
(decimal)32 not (hex)20 sneaky though, and probably more
efficient than my key suggestion?
Actually it's difficult to predict whether substring($s, $n, 1) will take
constant time or time proportional to string length. Likely to vary from one
implementation to another. The difficulty is surrogate pairs.
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>
--~--