Other Solutions to Typing:
Constructor Functions
type-name("value")
- These are implied functions (because defined in another
spec)
- Requires the namespace!
xmlns:xs="http://www.w3.org/2001/XMLSchema"
- There is one for every atomic type (XSD data types)
- Converts other atomic types into the type named
- The name of the function is the same as the name of the
type
(including namespace!)
- Acts like a “cast as”
function
- For example
xs:date("2005-08-30")
Acts
the same as ("2005-08-30" cast as xs:date)