]> Lady’s Gitweb - Shushe/blob - lib/metadata2dependencies.xslt
Generate destinations and dependencies as metadata
[Shushe] / lib / metadata2dependencies.xslt
1 <?xml version="1.0"?>
2 <!--
3 SPDX-FileCopyrightText: 2023, 2024 Lady <https://www.ladys.computer/about/#lady>
4 SPDX-License-Identifier: MPL-2.0
5 -->
6 <!--
7 ⁌ ⛩📰 书社 ∷ lib/metadata2dependencies.xslt
8
9 © 2023–2024 Lady [@ Ladys Computer].
10
11 This Source Code Form is subject to the terms of the Mozilla Public License, v 2.0.
12 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/>.
13 -->
14 <transform
15 xmlns="http://www.w3.org/1999/XSL/Transform"
16 xmlns:nie="http://www.semanticdesktop.org/ontologies/2007/01/19/nie#"
17 xmlns:nfo="http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#"
18 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
19 xmlns:书社vocab="urn:fdc:ladys.computer:20231231:Shu1She4:vocab:"
20 version="1.0"
21 >
22 <template match="/">
23 <for-each select="rdf:RDF/nfo:LocalFileDataObject[nie:interpretedAs/nfo:PlainTextDocument]">
24 <value-of select="@rdf:about"/>
25 <text>&#xA;</text>
26 <for-each select="书社vocab:hasRecursiveDependencyOn/@rdf:resource">
27 <text>&#x9;</text>
28 <text>-</text>
29 <value-of select="."/>
30 <text>&#xA;</text>
31 </for-each>
32 <for-each select="书社vocab:hasDependencyOn/@rdf:resource">
33 <text>&#x9;</text>
34 <value-of select="."/>
35 <text>&#xA;</text>
36 </for-each>
37 </for-each>
38 </template>
39 <output method="text" encoding="UTF-8"/>
40 </transform>
This page took 0.085657 seconds and 5 git commands to generate.