+++ /dev/null
-<?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>