3 ⁌ ⛩️📰 书社 ∷ transforms/metadata.xslt
5 © 2023–2024 Lady [@ Lady’s Computer]
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/>.
11 xmlns="http://www.w3.org/1999/XSL/Transform"
12 xmlns:html="http://www.w3.org/1999/xhtml"
13 xmlns:书社="urn:fdc:ladys.computer:20231231:Shu1She4"
14 exclude-result-prefixes="书社"
17 <书社:id>urn:fdc:ladys.computer:20231231:Shu1She4:metadata.xslt</书社:id>
18 <template match="html:*[@itemscope][1]//html:meta[not(@name) and starts-with(@itemprop, 'urn:fdc:ladys.computer:20231231:Shu1She4:')]">
20 <text>[书社:META] </text>
21 <value-of select="substring-after(@itemprop, 'urn:fdc:ladys.computer:20231231:Shu1She4:')"/>
23 <value-of select="@content"/>
26 <template match="comment()[starts-with(., '[书社:META] ')]" mode="书社:metadata">
27 <variable name="property" select="substring-before(substring-after(., '[书社:META] '), ': ')"/>
28 <variable name="value" select="substring-after(., concat('[书社:META] ', $property, ': '))"/>
30 <when test="$property='title'">
32 <value-of select="$value"/>