]> Lady’s Gitweb - Vocab/blobdiff - transforms/htmlclean.xslt
Drop the prefix on H·T·M·L elements
[Vocab] / transforms / htmlclean.xslt
diff --git a/transforms/htmlclean.xslt b/transforms/htmlclean.xslt
new file mode 100644 (file)
index 0000000..75924ef
--- /dev/null
@@ -0,0 +1,25 @@
+<?xml version="1.0"?>
+<!--
+SPDX-FileCopyrightText: 2025 Lady <https://www.ladys.computer/about/#lady>
+SPDX-License-Identifier: MPL-2.0
+-->
+<!--
+© 2025 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:html="http://www.w3.org/1999/xhtml"
+       xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+       xmlns:书社="urn:fdc:ladys.computer:20231231:Shu1She4"
+       version="1.0"
+>
+       <书社:id>urn:fdc:vocab.ladys.computer:20240731:transforms:htmlclean.xslt</书社:id>
+       <template match="html:*[not(ancestor::rdf:RDF)]" mode="书社:finalize" priority="0">
+               <element name="{local-name()}" namespace="http://www.w3.org/1999/xhtml">
+                       <apply-templates select="@*|node()" mode="书社:finalize"/>
+               </element>
+       </template>
+</transform>
This page took 0.157082 seconds and 4 git commands to generate.