functx:atomic-type
The built-in type of an atomic value
Description
The functx:atomic-type function checks the types of one or more atomic values and returns their type names. It will only work for built-in atomic types; if the value has a user-defined atomic type, the function will return the built-in type upon which the user-defined type is based. If $values is the empty sequence, it will return “empty sequence”.
Parameters |
Description |
---|---|
values:string() |
the value(s) whose type you want to determine |
Examples
XPath |
Results |
---|---|
functx:atomic-type(2) |
xs:integer |
functx:atomic-type(‘abc’) |
xs:string |
functx:atomic-type(xs:date(‘2005-12-15’)) |
xs:date |
functx:atomic-type((2,’abc’,xs:date(‘2005-12-15’))) |
(‘xs:integer’, ‘xs:string’, ‘xs:date’) |