3 SPDX-FileCopyrightText: 2024 Lady <https://www.ladys.computer/about/#lady>
4 SPDX-License-Identifier: MPL-2.0
7 ⁌ 📰 Caudex ∷ transforms/entry.xslt
9 © 2024 Lady [@ Ladys Computer]
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/>.
15 <!ENTITY Caudex "urn:fdc:ladys.computer:20240204:Caudex:">
16 <!ENTITY LesML "urn:fdc:ladys.computer:20240512:LesML:">
17 <!ENTITY 书社 "urn:fdc:ladys.computer:20231231:Shu1She4:">
20 xmlns="http://www.w3.org/1999/XSL/Transform"
21 xmlns:Caudex="urn:fdc:ladys.computer:20240204:Caudex"
22 xmlns:exsl="http://exslt.org/common"
23 xmlns:html="http://www.w3.org/1999/xhtml"
24 xmlns:书社="urn:fdc:ladys.computer:20231231:Shu1She4"
25 exclude-result-prefixes="exsl Caudex"
28 <书社:id>&Caudex;entry.xslt</书社:id>
29 <template match="/html:div[@书社:parsed-by='&Caudex;catalog.xslt'][@class='entry']">
31 <for-each select="@*[namespace-uri()!='urn:fdc:ladys.computer:20231231:Shu1She4']">
34 <for-each select="html:div[@id='@']/html:article[@书社:parsed-by='&LesML;parser.xslt']">
35 <variable name="metadata" select="html:footer[@class='head']/html:dl[1]"/>
36 <html:meta itemprop="&书社;title">
37 <attribute name="content">
38 <value-of select="$metadata//html:dt[string()='TITLE']/following-sibling::html:dd"/>
39 <if test="$metadata//html:dt[string()='TITLE'] and $metadata//html:dt[string()='ENTRY']">
42 <if test="$metadata//html:dt[string()='ENTRY']">
44 <value-of select="$metadata//html:dt[string()='ENTRY']/following-sibling::html:dd"/>
50 <if test="$metadata//html:dt[string()='TITLE']">
52 <value-of select="$metadata//html:dt[string()='TITLE']/following-sibling::html:dd"/>
55 <apply-templates select="node()[not(self::html:footer[@class='head'])]"/>