From: Lady <redacted>
Date: Sat, 4 Jan 2025 19:07:00 +0000 (-0500)
Subject: Fix links to U·R·L¦s
X-Git-Url: https://git.ladys.computer/Vocab/commitdiff_plain/2304b7c34ca0e67a39896e474f5add121f0bdfed?hp=f9a3d4a7c4def91f121da073a5fc80166af511f7

Fix links to U·R·L¦s
---

diff --git a/transforms/terms.xslt b/transforms/terms.xslt
index 9613e63..20875c1 100644
--- a/transforms/terms.xslt
+++ b/transforms/terms.xslt
@@ -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)">