Colin Paul Adams wrote:
> 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 think that it is allowed in ECMA, but undesirable in a
library like Gobo. In my opinion the solution is to have
this feature exported to MA_DECIMAL_HANDLER and have your
class inherit from it.
--
Eric Bezault
mailto:er...@go...
http://www.gobosoft.com
|