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:书社="urn:fdc:ladys.computer:20231231:Shu1She4"
21 <for-each select="//catalog:uri[starts-with(@name, 'about:shushe?source=')]">
23 <when test="substring-after(@uri, '#')='xml'">
24 <variable name="destination" select="document(substring-before(@uri, '#'), .)/*/@书社:destination"/>
25 <value-of select="@name"/>
28 <when test="$destination">
29 <value-of select="$destination"/>
32 <value-of select="substring-after(@name, 'about:shushe?source=')"/>
38 <value-of select="@name"/>
40 <value-of select="substring-after(@name, 'about:shushe?source=')"/>
46 <output method="text" encoding="UTF-8"/>