]> Lady’s Gitweb - Shushe/blob - lib/catalog2destinations.xslt
Remove classes from parse results
[Shushe] / lib / catalog2destinations.xslt
1 <?xml version="1.0"?>
2 <!--
3 ⁌ ⛩️📰 书社 ∷ lib/catalog2destinations.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:catalog="urn:oasis:names:tc:entity:xmlns:xml:catalog"
13 xmlns:书社="urn:fdc:ladys.computer:20231231:Shu1She4"
14 version="1.0"
15 >
16 <template match="/">
17 <for-each select="//catalog:uri[starts-with(@name, 'about:shushe?source=')]">
18 <choose>
19 <when test="substring-after(@uri, '#')='xml'">
20 <variable name="destination" select="document(substring-before(@uri, '#'), .)/*/@书社:destination"/>
21 <value-of select="@name"/>
22 <text>|</text>
23 <choose>
24 <when test="$destination">
25 <value-of select="$destination"/>
26 </when>
27 <otherwise>
28 <value-of select="substring-after(@name, 'about:shushe?source=')"/>
29 </otherwise>
30 </choose>
31 <text>&#xA;</text>
32 </when>
33 <otherwise>
34 <value-of select="@name"/>
35 <text>|</text>
36 <value-of select="substring-after(@name, 'about:shushe?source=')"/>
37 <text>&#xA;</text>
38 </otherwise>
39 </choose>
40 </for-each>
41 </template>
42 <output method="text" encoding="UTF-8"/>
43 </transform>
This page took 0.054948 seconds and 5 git commands to generate.