]> Lady’s Gitweb - Shushe/blob - transforms/metadata.xslt
Don’t use literal result elements in transforms
[Shushe] / transforms / metadata.xslt
1 <?xml version="1.0"?>
2 <!--
3 SPDX-FileCopyrightText: 2023, 2024 Lady <https://www.ladys.computer/about/#lady>
4 SPDX-License-Identifier: MPL-2.0
5 -->
6 <!--
7 ⁌ ⛩📰 书社 ∷ transforms/metadata.xslt
8
9 © 2023–2024 Lady [@ Ladys Computer].
10
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/>.
13 -->
14 <!DOCTYPE transform [
15 <!ENTITY attoplevel "not(ancestor::html:template) and ancestor::html:*[@itemscope and @itemtype='&书社;:document'] and not(ancestor::html:*[@itemscope]/ancestor::html:*[@itemscope and @itemtype='&书社;:document'] or preceding::html:*[@itemtype='&书社;:document'])">
16 <!ENTITY xhtml "http://www.w3.org/1999/xhtml">
17 <!ENTITY 书社 "urn:fdc:ladys.computer:20231231:Shu1She4">
18 ]>
19 <transform
20 xmlns="http://www.w3.org/1999/XSL/Transform"
21 xmlns:html="&xhtml;"
22 xmlns:书社="&书社;"
23 version="1.0"
24 >
25 <书社:id>urn:fdc:ladys.computer:20231231:Shu1She4:metadata.xslt</书社:id>
26 <template match="html:meta[not(@name) and @itemprop='&书社;:title'][&attoplevel;]" mode="书社:metadata">
27 <element name="title" namespace="&xhtml;">
28 <value-of select="@content"/>
29 </element>
30 </template>
31 </transform>
This page took 0.049666 seconds and 5 git commands to generate.