fn.typeAvailable( type-name as String ) as Boolean
Returns true if and only if there is a type whose name matches the value of the $type-name argument is present in the static context. This is an XSLT function, and it is available in both XSLT and in XQuery 1.0-ml.
fn.typeAvailable("xs:integer") => true
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.