3 ⁌ ⛩️📰 书社 ∷ lib/catalog2destinations.xslt
5 © 2024 Lady [@ Lady’s Computer]
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/>.
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"
17 <for-each select="//catalog:uri[starts-with(@name, 'about:shushe?source=')]">
19 <when test="substring-after(@uri, '#')='xml'">
20 <variable name="destination" select="document(substring-before(@uri, '#'), .)/*/@书社:destination"/>
21 <value-of select="@name"/>
24 <when test="$destination">
25 <value-of select="$destination"/>
28 <value-of select="substring-after(@name, 'about:shushe?source=')"/>
34 <value-of select="@name"/>
36 <value-of select="substring-after(@name, 'about:shushe?source=')"/>
42 <output method="text" encoding="UTF-8"/>