From: Colin P. A. <co...@co...> - 2007-08-06 04:57:07
|
In order to create the XPath string value of an xs:decimal value correctly (no exponential notation, and no NaNs or infinities), I copied and edited the code for {MA_DECIMAL}.to_string_general into XM_XPATH_DECIMAL_VALUE. In order for it to compile, I had to add XM_XPATH_DECIMAL_VALUE to the list of classes to which {MA_DECIMAL}.coefficient is exported. I am not sure if doing this adds an unwanted cluster dependency or not (I have a vague memory that ECMA miht have changed the rules in this area). If it does introduce a dependency, then instead coefficient will need exporting to ANY. I haven't checked this code in. -- Colin Adams Preston Lancashire |