3 ⁌ ⛩️📰 书社 ∷ 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:html="http://www.w3.org/1999/xhtml"
13 xmlns:书社="urn:fdc:ladys.computer:20231231:Shu1She4"
16 <template name="书社:split">
17 <param name="source"/>
18 <param name="separator" select="'
'"/>
20 <when test="contains($source, $separator)">
22 <value-of select="substring-before($source, $separator)"/>
24 <call-template name="书社:split">
25 <with-param name="source" select="substring-after($source, $separator)"/>
26 <with-param name="separator" select="$separator"/>
31 <value-of select="$source"/>