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/1503a11752096ca9bc308f2f8e1961f49681d59f?ds=inline;hp=31c9af2b2455f8ccf188e18181088f9dd43d23d6

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)">