Casting

if ($x castable as xsd:gYear)
then cast as xsd:gYear($x)
else if ($x castable as xsd:integer)
then cast as xsd:integer($x)
else if ($x castable as xsd:decimal)
then cast as xsd:decimal($x)
else cast as string($x)

Previous | Next | Top | Cafe con Leche

Copyright 2002, 2003 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified March 28, 2003