+++ /dev/null
-<?xml version="1.0"?>
-<!--
-SPDX-FileCopyrightText: 2024 Lady <https://www.ladys.computer/about/#lady>
-SPDX-License-Identifier: MPL-2.0
--->
-<!--
-© 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:exsl="http://exslt.org/common"
- xmlns:html="http://www.w3.org/1999/xhtml"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:owl="http://www.w3.org/2002/07/owl#"
- xmlns:shacl="http://www.w3.org/ns/shacl#"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- xmlns:书社="urn:fdc:ladys.computer:20231231:Shu1She4"
- extension-element-prefixes="exsl"
- version="1.0"
->
- <书社:id>urn:fdc:vocab.ladys.computer:20240731:transforms:cleanup.xslt</书社:id>
- <template match="/rdf:RDF" mode="书社:apply">
- <variable name="fragment">
- <书社:raw-text>
- <text><?xml version="1.0"?></text>
- <element name="书社:serialize-xml">
- <element name="rdf:RDF">
- <for-each select="owl:Ontology/namespace::*">
- <copy/>
- </for-each>
- <apply-templates mode="书社:apply"/>
- </element>
- </element>
- </书社:raw-text>
- </variable>
- <apply-templates select="exsl:node-set($fragment)" mode="书社:apply"/>
- </template>
- <template match="/rdf:RDF//@xlink:*|/rdf:RDF//@书社:*|/rdf:RDF//书社:*|/rdf:RDF//text()[not(ancestor::html:*/ancestor::rdf:RDF) and normalize-space()='']|/rdf:RDF//comment()" mode="书社:apply" priority="10"/>
- <template match="/rdf:RDF//text()[not(ancestor::html:*/ancestor::rdf:RDF) and normalize-space()!='']" mode="书社:apply" priority="10">
- <value-of select="normalize-space()"/>
- </template>
-</transform>