> Am I doing something wrong?
yes, using the function xs:integer to try to get the integer 32 from a
character with unicode value 32. The function you are looking for is
available in xpath but not called xs:integer it is called
string-to-codepoints which returns (in general) a sequence of integers,
but if as here your string has length 1, you'll get a single integer (32).
David
________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs.
________________________________________________________________________