[xquery-talk] Union types
James A. Robinson
jim.robinson at stanford.edu
Fri Jan 12 13:11:15 PST 2007
> The problem occurs if myProp is a simpleType with an union. I do not
> know how to cast the input data. I tried using "instance of" on the
> literal value operator but quickly found out that "1999-12-31T12:00:00"
> instance of xs:dateTime yields false. If I don't do any casting I get
> an exception.
>
> Are there any suggestion as to how to deal with this issue?
Does '$foo castable as xs:dateTime' help you?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
James A. Robinson jim.robinson at stanford.edu
Stanford University HighWire Press http://highwire.stanford.edu/
+1 650 7237294 (Work) +1 650 7259335 (Fax)
More information about the talk
mailing list