+++ /dev/null
-<?xml version="1.0"?>
-<!--
-⁌ 📰 Caudex ∷ lib/split.xslt
-
-© 2024 Lady [@ Lady’s Computer]
-
-This Source Code Form is subject to the terms of the Mozilla Public License, v 2.0.
-If a copy of the M·P·L was not distributed with this file, You can obtain one at <https://mozilla.org/MPL/2.0/>.
--->
-<transform
- xmlns="http://www.w3.org/1999/XSL/Transform"
- xmlns:Caudex="urn:fdc:ladys.computer:20240204:Caudex"
- xmlns:html="http://www.w3.org/1999/xhtml"
- exclude-result-prefixes="Caudex"
- version="1.0"
->
- <template name="Caudex:split">
- <param name="source"/>
- <param name="separator" select="'
'"/>
- <choose>
- <when test="contains($source, $separator)">
- <html:span>
- <value-of select="substring-before($source, $separator)"/>
- </html:span>
- <call-template name="Caudex:split">
- <with-param name="source" select="substring-after($source, $separator)"/>
- <with-param name="separator" select="$separator"/>
- </call-template>
- </when>
- <otherwise>
- <html:span>
- <value-of select="$source"/>
- </html:span>
- </otherwise>
- </choose>
- </template>
-</transform>