Read XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition Online
Authors: Michael Kay
if ($p castable as xs:date) then xs:date($p) else ()
The syntax for thecast
asand
castable
asoperators is shown below. Both operators are written as compound tokens.
Expression | Syntax |
CastableExpr | CastExpr (![]() ![]() ![]() ![]() |
CastExpr | UnaryExpr (![]() ![]() ![]() ![]() |
SingleType | AtomicType![]() ![]() |
AtomicType | QName |