]> Lady’s Gitweb - Shushe/blobdiff - transforms/serialization.xslt
Apply attributes at every stage
[Shushe] / transforms / serialization.xslt
index 09f595eae627ef285f648acbd0b6b887dae38183..13c47b8b01a733c2fa4175d10e526f679093752f 100644 (file)
@@ -4,9 +4,9 @@ SPDX-FileCopyrightText: 2024 Lady <https://www.ladys.computer/about/#lady>
 SPDX-License-Identifier: MPL-2.0
 -->
 <!--
-⁌ ⛩📰 书社 ∷ transforms/serialization.xslt
+⁌ ⛩📰 书社 ∷ transforms/serialization.xslt
 
-© 2024 Lady [@ Ladys Computer].
+© 2024 Lady [@ Ladys Computer].
 
 This Source Code Form is subject to the terms of the Mozilla Public License, v 2.0.
 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/>.
@@ -22,10 +22,10 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
 >
        <import href="../lib/serialize.xslt"/>
        <书社:id>urn:fdc:ladys.computer:20231231:Shu1She4:serialization.xslt</书社:id>
-       <template match="书社:serialize-xml" mode="书社:application" priority="1">
+       <template match="书社:serialize-xml" mode="书社:finalize" priority="1">
                <variable name="namespaces" select="namespace::*"/>
                <variable name="contents">
-                       <apply-templates mode="书社:application"/>
+                       <apply-templates mode="书社:finalize"/>
                </variable>
                <variable name="passthru-namespaces" select="exslstr:tokenize(string(@with-namespaces))"/>
                <apply-templates select="exsl:node-set($contents)" mode="书社:serialize">
@@ -64,4 +64,7 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                        </with-param>
                </apply-templates>
        </template>
+       <template match="书社:raw-output" mode="书社:serialize" priority="1">
+               <copy-of select=".//text()"/>
+       </template>
 </transform>
This page took 0.078627 seconds and 4 git commands to generate.