3 SPDX-FileCopyrightText: 2024 Lady <https://www.ladys.computer/about/#lady>
4 SPDX-License-Identifier: MPL-2.0
7 ⁌ ⛩📰 书社 ∷ lib/split.xslt
9 © 2024 Lady [@ Ladys Computer].
11 This Source Code Form is subject to the terms of the Mozilla Public License, v 2.0.
12 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/>.
15 xmlns="http://www.w3.org/1999/XSL/Transform"
16 xmlns:html="http://www.w3.org/1999/xhtml"
17 xmlns:书社="urn:fdc:ladys.computer:20231231:Shu1She4"
20 <template name="书社:split">
21 <param name="source"/>
22 <param name="separator" select="'
'"/>
24 <when test="contains($source, $separator)">
26 <value-of select="substring-before($source, $separator)"/>
28 <call-template name="书社:split">
29 <with-param name="source" select="substring-after($source, $separator)"/>
30 <with-param name="separator" select="$separator"/>
35 <value-of select="$source"/>