3 ⁌ 📰 Caudex ∷ lib/split.xslt
5 © 2024 Lady [@ Lady’s Computer]
7 This Source Code Form is subject to the terms of the Mozilla Public License, v 2.0.
8 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/>.
11 xmlns="http://www.w3.org/1999/XSL/Transform"
12 xmlns:Caudex="urn:fdc:ladys.computer:20240204:Caudex"
13 xmlns:html="http://www.w3.org/1999/xhtml"
14 exclude-result-prefixes="Caudex"
17 <template name="Caudex:split">
18 <param name="source"/>
19 <param name="separator" select="'
'"/>
21 <when test="contains($source, $separator)">
23 <value-of select="substring-before($source, $separator)"/>
25 <call-template name="Caudex:split">
26 <with-param name="source" select="substring-after($source, $separator)"/>
27 <with-param name="separator" select="$separator"/>
32 <value-of select="$source"/>