3 SPDX-FileCopyrightText: 2023, 2024 Lady <https://www.ladys.computer/about/#lady>
4 SPDX-License-Identifier: MPL-2.0
7 ⁌ ⛩️📰 书社 ∷ lib/catalog2destinations.xslt
9 © 2024 Lady [@ Lady’s 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:catalog="urn:oasis:names:tc:entity:xmlns:xml:catalog"
17 xmlns:exslstr="http://exslt.org/strings"
18 xmlns:书社="urn:fdc:ladys.computer:20231231:Shu1She4"
19 extension-element-prefixes="exslstr"
23 <for-each select="//catalog:uri[starts-with(@name, 'about:shushe?source=')]">
25 <when test="substring-after(@uri, '#')='xml'">
26 <variable name="destination" select="document(substring-before(@uri, '#'), .)/*/@书社:destination"/>
27 <value-of select="@name"/>
30 <when test="$destination">
31 <value-of select="$destination"/>
34 <value-of select="substring-after(@name, 'about:shushe?source=')"/>
40 <value-of select="@name"/>
42 <value-of select="substring-after(@name, 'about:shushe?source=')"/>
48 <output method="text" encoding="UTF-8"/>