- From: Martin Tapp <tappm@cae.com>
- Date: Mon, 28 Jan 2002 13:43:05 -0500
- To: www-ql@w3.org
Hi, I was woundering how a type conversion works when no schema/DTD is available. If I look at the Basic Conversion Rules (from section 2.1.2 of http://www.w3.org/TR/xquery), it states: "If the (given or extracted) value has an unknown simple type (as in the case of character data in a schemaless document), an attempt is made to cast it to the required simple type. If the cast fails, a type exception is invoked." Does this mean that if an element contains the text "5.0" and the requested type is xs:decimal, the string value is extracted and converted to xs:decimal? Or does it try to call the constructor xf:decimal with the string value? Or does it simply generates an error because there is no typed value? It is not clear to me witch case it is, because everything seems to suppose a typed-value is available. Thanks for any info! Martin Tapp
Received on Monday, 28 January 2002 13:50:46 UTC