<?xml version="1.0"?>
<!--
-@(#)💄📝 Les·M·L xslt/lesml.xslt 2026-03-31T01:31:16Z
+@(#)💄📝 Les·M·L xslt/lesml.xslt 2026-08-08T04:43:47Z
SPDX-FileCopyrightText: 2024, 2025, 2026 Lady <https://www.ladys.computer/about/#lady>
SPDX-License-Identifier: MPL-2.0
-->
<choose>
<when test="contains(' 	', substring(., 1, 1)) and exslset:has-same-node($fields, preceding-sibling::*[1])"/>
<otherwise>
+ <variable name="firstsplit" select="LesML:split(., ':')"/>
+ <variable name="term">
+ <for-each select="$firstsplit[last()>position()]">
+ <if test="position()>1">
+ <text>:</text>
+ </if>
+ <value-of select="."/>
+ </for-each>
+ </variable>
+ <variable name="firstline">
+ <value-of select="normalize-space($firstsplit[last()])"/>
+ </variable>
<variable name="next" select="$following[not(contains(' 	', substring(., 1, 1)))][1]"/>
+ <if test="2>count($firstsplit)">
+ <message terminate="yes">
+ <text>Invalid field: Missing colon.</text>
+ </message>
+ </if>
<element name="div" namespace="&xhtml;">
<element name="dt" namespace="&xhtml;">
- <value-of select="normalize-space(substring-before(., ':'))"/>
+ <value-of select="normalize-space($term)"/>
</element>
<element name="dd" namespace="&xhtml;">
- <variable name="firstline">
- <choose>
- <when test="contains(., ':')">
- <value-of select="normalize-space(substring-after(., ':'))"/>
- </when>
- <otherwise>
- <value-of select="normalize-space(.)"/>
- </otherwise>
- </choose>
- </variable>
<choose>
<when test="substring($firstline, string-length($firstline))='\' and $following[position()=1 and contains(' 	', substring(., 1, 1))]">
<value-of select="substring($firstline, 1, string-length($firstline)-1)"/>