fn:type-available( $type-name as xs:string ) as xs: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:type-available("xs:integer") => true
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.