]> Lady’s Gitweb - Shushe/blob - lib/split.xslt
Fix T·S·V parser
[Shushe] / lib / split.xslt
1 <?xml version="1.0"?>
2 <!--
3 SPDX-FileCopyrightText: 2024 Lady <https://www.ladys.computer/about/#lady>
4 SPDX-License-Identifier: MPL-2.0
5 -->
6 <!--
7 ⁌ ⛩️📰 书社 ∷ lib/split.xslt
8
9 © 2024 Lady [@ Lady’s Computer].
10
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/>.
13 -->
14 <transform
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"
18 version="1.0"
19 >
20 <template name="书社:split">
21 <param name="source"/>
22 <param name="separator" select="'&#xA;'"/>
23 <choose>
24 <when test="contains($source, $separator)">
25 <html:span>
26 <value-of select="substring-before($source, $separator)"/>
27 </html:span>
28 <call-template name="书社:split">
29 <with-param name="source" select="substring-after($source, $separator)"/>
30 <with-param name="separator" select="$separator"/>
31 </call-template>
32 </when>
33 <otherwise>
34 <html:span>
35 <value-of select="$source"/>
36 </html:span>
37 </otherwise>
38 </choose>
39 </template>
40 </transform>
This page took 0.069228 seconds and 5 git commands to generate.