]> Lady’s Gitweb - Shushe/blob - lib/catalog2parser.xslt
Fix <html:head> copying
[Shushe] / lib / catalog2parser.xslt
1 <?xml version="1.0"?>
2 <!--
3 ⁌ ⛩️📰 书社 ∷ lib/catalog2parser.xslt
4
5 © 2023–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: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"
16 version="1.0"
17 >
18 <namespace-alias stylesheet-prefix="xslt" result-prefix="#default"/>
19 <template match="/">
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"/>
26 </attribute>
27 </if>
28 </xslt:include>
29 </for-each>
30 <xslt:template match="@*|node()" priority="-1">
31 <xslt:copy>
32 <xslt:apply-templates select="@*|node()"/>
33 </xslt:copy>
34 </xslt:template>
35 </xslt:transform>
36 </template>
37 </transform>
This page took 0.053029 seconds and 5 git commands to generate.