]> Lady’s Gitweb - Caudex/blobdiff - transforms/entry.xslt
Refactor to just be a parser & transform
[Caudex] / transforms / entry.xslt
diff --git a/transforms/entry.xslt b/transforms/entry.xslt
deleted file mode 100644 (file)
index 82bbf21..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-<?xml version="1.0"?>
-<!--
-⁌ 🪾📰 Caudex ∷ transforms/entry.xslt
-
-© 2024 Lady [@ Lady’s Computer]
-
-This Source Code Form is subject to the terms of the Mozilla Public License, v 2.0.
-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/>.
--->
-<!DOCTYPE transform [
-       <!ENTITY Caudex "urn:fdc:ladys.computer:20240204:Caudex:">
-       <!ENTITY LesML "urn:fdc:ladys.computer:20240512:LesML:">
-       <!ENTITY 书社 "urn:fdc:ladys.computer:20231231:Shu1She4:">
-]>
-<transform
-       xmlns="http://www.w3.org/1999/XSL/Transform"
-       xmlns:Caudex="urn:fdc:ladys.computer:20240204:Caudex"
-       xmlns:exsl="http://exslt.org/common"
-       xmlns:html="http://www.w3.org/1999/xhtml"
-       xmlns:书社="urn:fdc:ladys.computer:20231231:Shu1She4"
-       exclude-result-prefixes="exsl Caudex"
-       version="1.0"
->
-       <书社:id>&Caudex;entry.xslt</书社:id>
-       <template match="/html:div[@书社:parsed-by='&Caudex;catalog.xslt'][@class='entry']">
-               <html:body>
-                       <for-each select="@*[namespace-uri()!='urn:fdc:ladys.computer:20231231:Shu1She4']">
-                               <copy/>
-                       </for-each>
-                       <for-each select="html:div[@id='@']/html:article[@书社:parsed-by='&LesML;parser.xslt']">
-                               <variable name="metadata" select="html:footer[@class='head']/html:dl[1]"/>
-                               <html:meta itemprop="&书社;title">
-                                       <attribute name="content">
-                                               <value-of select="$metadata//html:dt[string()='TITLE']/following-sibling::html:dd"/>
-                                               <if test="$metadata//html:dt[string()='TITLE'] and $metadata//html:dt[string()='ENTRY']">
-                                                       <text> </text>
-                                               </if>
-                                               <if test="$metadata//html:dt[string()='ENTRY']">
-                                                       <text>(</text>
-                                                       <value-of select="$metadata//html:dt[string()='ENTRY']/following-sibling::html:dd"/>
-                                                       <text>)</text>
-                                               </if>
-                                       </attribute>
-                               </html:meta>
-                               <html:article>
-                                       <if test="$metadata//html:dt[string()='TITLE']">
-                                               <html:h1>
-                                                       <value-of select="$metadata//html:dt[string()='TITLE']/following-sibling::html:dd"/>
-                                               </html:h1>
-                                       </if>
-                                       <apply-templates select="node()[not(self::html:footer[@class='head'])]"/>
-                               </html:article>
-                       </for-each>
-               </html:body>
-       </template>
-</transform>
This page took 0.025369 seconds and 4 git commands to generate.