<when test="owl:oneOf">
<text>{</text>
<for-each select="owl:oneOf/*">
- <apply-templates select="." name="Vocab:render-individual">
+ <apply-templates select="." mode="Vocab:render-individual">
<with-param name="root" select="$root"/>
<with-param name="resource-context" select="$resource-context"/>
</apply-templates>
</call-template>
</for-each>
</template>
- <template match="*" mode="Vocab:render-class">
+ <template match="@*|node()" mode="Vocab:render-class">
<text>??</text>
</template>
<template match="rdf:Description" mode="Vocab:render-individual">
</call-template>
</for-each>
</template>
- <template match="*" mode="Vocab:render-individual">
+ <template match="@*|node()" mode="Vocab:render-individual">
<text>??</text>
</template>
<template match="owl:AnnotationProperty|owl:DatatypeProperty|rdf:Description" mode="Vocab:render-property">
</call-template>
</for-each>
</template>
- <template match="*" mode="Vocab:render-property">
+ <template match="@*|node()" mode="Vocab:render-property">
<text>??</text>
</template>
- <template match="*" mode="Vocab:render-value">
+ <template match="@*|node()" mode="Vocab:render-value">
<param name="root" select="/"/>
+ <variable name="datatype" select="@rdf:datatype"/>
<element name="code" namespace="&xhtml;">
<text>"</text>
<element name="span" namespace="&xhtml;">
<text>@</text>
<value-of select="@xml:lang"/>
</when>
- <when test="@rdf:datatype and string(@rdf:datatype)!='http://www.w3.org/2001/XMLSchema#string'">
+ <when test="$datatype and string($datatype)!='http://www.w3.org/2001/XMLSchema#string'">
<text>^^</text>
- <for-each select="/">
+ <for-each select="$root">
<call-template name="Vocab:link-to">
- <with-param name="resource" select="@rdf:datatype"/>
+ <with-param name="resource" select="string($datatype)"/>
<with-param name="kind" select="'class'"/>
</call-template>
</for-each>