c.typeOf ([schemaLocationA : string], schemaLocationB : string) : boolean

The method typeOf checks whether the first schema location specified is located below the second specified schema location in the object model or corresponds to this. If the first schema location is not specified, then the schema location of the current object is compared with the schema location given as a parameter.

<xsl:value-of select="c.typeOf('Onion:','Onion:')" />
Checking of two data types

In this example it is checked whether the data type "Onion:" is located in the data model below the data type "Onion:".