]> Lady’s Gitweb - Vocab/blobdiff - transforms/terms.xslt
Fix links to U·R·L¦s
[Vocab] / transforms / terms.xslt
index 9613e63990c344f176f6a3e6712306614d85a991..20875c19c2b3134abb5b15ffb3d931d09df54ed5 100644 (file)
@@ -70,20 +70,27 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                                                <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)">
This page took 0.02193 seconds and 4 git commands to generate.