]> Lady’s Gitweb - Caudex/blobdiff - parsers/catalog.xslt
Refactor to just be a parser & transform
[Caudex] / parsers / catalog.xslt
diff --git a/parsers/catalog.xslt b/parsers/catalog.xslt
deleted file mode 100644 (file)
index c1f4883..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-<?xml version="1.0"?>
-<!--
-SPDX-FileCopyrightText: 2024 Lady <https://www.ladys.computer/about/#lady>
-SPDX-License-Identifier: MPL-2.0
--->
-<!--
-⁌ 🪾📰 Caudex ∷ parsers/catalog.xslt
-
-© 2024 Lady [@ Ladys 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/>.
--->
-<transform
-       xmlns="http://www.w3.org/1999/XSL/Transform"
-       xmlns:Caudex="urn:fdc:ladys.computer:20240204:Caudex"
-       xmlns:catalog="urn:oasis:names:tc:entity:xmlns:xml:catalog"
-       xmlns:html="http://www.w3.org/1999/xhtml"
-       xmlns:xlink="http://www.w3.org/1999/xlink"
-       xmlns:书社="urn:fdc:ladys.computer:20231231:Shu1She4"
-       exclude-result-prefixes="catalog"
-       version="1.0"
->
-       <书社:id>urn:fdc:ladys.computer:20240204:Caudex:catalog.xslt</书社:id>
-       <template match="/catalog:catalog">
-               <html:div class="{substring-after(catalog:uri[@name='?']/@uri, 'about:')}" 书社:parsed-by="urn:fdc:ladys.computer:20240204:Caudex:catalog.xslt">
-                       <if test="catalog:uri[@name='.']">
-                               <attribute name="书社:destination">
-                                       <value-of select="catalog:uri[@name='.']/@uri"/>
-                               </attribute>
-                       </if>
-                       <apply-templates select="catalog:uri[not(@name='?' or @name='.')]"/>
-               </html:div>
-       </template>
-       <template match="catalog:uri[not(@name='?' or @name='.')]">
-               <html:div id="{@name}">
-                       <if test="contains(@uri, '?cksum=')">
-                               <attribute name="Caudex:cksum">
-                                       <value-of select="substring-after(@uri, '?cksum=')"/>
-                               </attribute>
-                       </if>
-                       <书社:link xlink:show="embed">
-                               <attribute name="xlink:href">
-                                       <text>about:shushe?include=</text>
-                                       <choose>
-                                               <when test="contains(@uri, '?')">
-                                                       <value-of select="substring-before(@uri, '?')"/>
-                                               </when>
-                                               <otherwise>
-                                                       <value-of select="@uri"/>
-                                               </otherwise>
-                                       </choose>
-                               </attribute>
-                       </书社:link>
-               </html:div>
-       </template>
-</transform>
This page took 0.026793 seconds and 4 git commands to generate.