]> Lady’s Gitweb - Shushe/blob - lib/split.xslt
13c79ed9a37ba9d5c73611c9d4fe8b40d3791992
[Shushe] / lib / split.xslt
1 <?xml version="1.0"?>
2 <!--
3 ⁌ ⛩️📰 书社 ∷ lib/split.xslt
4
5 © 2024 Lady [@ Lady’s Computer]
6
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/>.
9 -->
10 <transform
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"
14 version="1.0"
15 >
16 <template name="书社:split">
17 <param name="source"/>
18 <param name="separator" select="'&#xA;'"/>
19 <choose>
20 <when test="contains($source, $separator)">
21 <html:span>
22 <value-of select="substring-before($source, $separator)"/>
23 </html:span>
24 <call-template name="书社:split">
25 <with-param name="source" select="substring-after($source, $separator)"/>
26 <with-param name="separator" select="$separator"/>
27 </call-template>
28 </when>
29 <otherwise>
30 <html:span>
31 <value-of select="$source"/>
32 </html:span>
33 </otherwise>
34 </choose>
35 </template>
36 </transform>
This page took 0.052843 seconds and 3 git commands to generate.