<value-of select="$kind"/>
</attribute>
<attribute name="href">
- <text>/terms/</text>
<choose>
- <when test="$kind='class'">
- <text>classes/</text>
- </when>
- <when test="$kind='property'">
- <text>properties/</text>
+ <when test="$curie=string($resource)">
+ <value-of select="$resource"/>
</when>
<otherwise>
- <text>individuals/</text>
+ <text>/terms/</text>
+ <choose>
+ <when test="$kind='class'">
+ <text>classes/</text>
+ </when>
+ <when test="$kind='property'">
+ <text>properties/</text>
+ </when>
+ <otherwise>
+ <text>individuals/</text>
+ </otherwise>
+ </choose>
+ <value-of select="$localid"/>
+ <text>.xhtml</text>
</otherwise>
</choose>
- <value-of select="$localid"/>
- <text>.xhtml</text>
</attribute>
<for-each select="key(concat('Vocab:named-', $kind), $resource)[1]">
<if test="not($full)">
<value-of select="rdfs:label[1]"/>
</element>
<element name="p" namespace="&xhtml;">
+ &en;
<text>An ontology.</text>
</element>
</element>
<text>)</text>
</element>
<element name="p" namespace="&xhtml;">
+ &en;
<choose>
<when test="self::owl:Class">
<text>A class.</text>