]> Lady’s Gitweb - Shushe/blob - transforms/attributes.xslt
e91e7cb0bf40e822c9054c1e95a1283a7e396fdc
[Shushe] / transforms / attributes.xslt
1 <?xml version="1.0"?>
2 <!--
3 ⁌ ⛩️📰 书社 ∷ transforms/attributes.xslt
4
5 © 2024 Lady [@ Lady’s Computer]
6
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/>.
9 -->
10 <transform
11 xmlns="http://www.w3.org/1999/XSL/Transform"
12 xmlns:exsl="http://exslt.org/common"
13 xmlns:书社="urn:fdc:ladys.computer:20231231:Shu1She4"
14 exclude-result-prefixes="exsl"
15 version="1.0"
16 >
17 <书社:id>urn:fdc:ladys.computer:20231231:Shu1She4:attributes.xslt</书社:id>
18 <template match="书社:apply-attributes">
19 <for-each select="node()">
20 <choose>
21 <when test="self::*">
22 <variable name="original" select="."/>
23 <variable name="result">
24 <apply-templates select="."/>
25 </variable>
26 <for-each select="exsl:node-set($result)/*">
27 <copy>
28 <for-each select="@*|$original/../@*">
29 <copy/>
30 </for-each>
31 <apply-templates/>
32 </copy>
33 </for-each>
34 </when>
35 <otherwise>
36 <apply-templates select="."/>
37 </otherwise>
38 </choose>
39 </for-each>
40 </template>
41 </transform>
This page took 0.058055 seconds and 3 git commands to generate.