3 ⁌ ⛩️📰 书社 ∷ lib/catalog2parser.xslt
5 © 2023–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:xslt="http://www.w3.org/1999/XSL/TransformAlias"
14 xmlns:书社="urn:fdc:ladys.computer:20231231:Shu1She4"
15 exclude-result-prefixes="catalog"
18 <namespace-alias stylesheet-prefix="xslt" result-prefix="#default"/>
20 <xslt:transform version="1.0">
21 <for-each select="//catalog:uri">
22 <xslt:include href="{@uri}">
23 <if test="contains(@name, ':')">
24 <attribute name="书社:id">
25 <value-of select="@name"/>
30 <xslt:template match="@*|node()" priority="-1">
32 <xslt:apply-templates select="@*|node()"/>
37 <output method="xml" encoding="UTF-8"/>