3 SPDX-FileCopyrightText: 2024 Lady <https://www.ladys.computer/about/#lady>
4 SPDX-License-Identifier: MPL-2.0
7 ⁌ ⛩️📰 书社 ∷ lib/literally.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:xslt="http://www.w3.org/1999/XSL/TransformAlias"
17 xmlns:书社="urn:fdc:ladys.computer:20231231:Shu1She4"
20 <template match="node()" mode="书社:literally">
23 <xslt:element name="{name()}" namespace="{namespace-uri()}">
24 <for-each select="@*">
25 <xslt:attribute name="{name()}" namespace="{namespace-uri()}">
27 <value-of select="."/>
31 <apply-templates mode="书社:literally"/>
34 <when test="self::text()">
36 <value-of select="."/>
39 <when test="self::processing-instruction()">
40 <xslt:processing-instruction name="{local-name()}">
42 <value-of select="."/>
44 </xslt:processing-instruction>
46 <when test="self::comment()">
49 <value-of select="."/>
54 <apply-templates mode="书社:literally"/>