<?xml version="1.0"?>
<!--
-SPDX-FileCopyrightText: 2023, 2024, 2025 Lady <https://www.ladys.computer/about/#lady>
+SPDX-FileCopyrightText: 2023, 2024, 2025, 2026 Lady <https://www.ladys.computer/about/#lady>
SPDX-License-Identifier: MPL-2.0
-->
<!--
⁌ ⛩📰 书社 ∷ lib/expandmetadata.xslt
-© 2023–2025 Lady [@ Ladys Computer].
+© 2023–2026 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/>.
<variable name="files" select="//书社vocab:SourceFile|//书社vocab:IncludeFile"/>
<variable name="stated-dependencies-fragment">
<for-each select="$files[nie:interpretedAs/nfo:PlainTextDocument]">
- <variable name="uri" select="书社vocab:hasParsedFile/@nfo:fileUrl"/>
+ <variable name="uri" select="书社vocab:hasParsedFileWithMetadata/@nfo:fileUrl"/>
<书社:Dependencies for="{@rdf:about}">
- <for-each select="document($uri)//书社:link">
+ <for-each select="document($uri)/书社:parsed/书社:result//书社:link">
<variable name="spaced-show">
<choose>
<when test="@xlink:show">
</copy>
</template>
<template match="//书社vocab:SourceFile[nie:interpretedAs/nfo:PlainTextDocument]" priority="1">
- <variable name="parsed" select="document(书社vocab:hasParsedFile/@nfo:fileUrl)"/>
+ <variable name="parsed" select="document(书社vocab:hasParsedFileWithMetadata/@nfo:fileUrl)/书社:parsed/书社:result"/>
<variable name="provided-destinations" select="normalize-space($parsed/*/@书社:destination)"/>
<variable name="destinations-fragment">
<if test="$provided-destinations!=''">
<variable name="result" select="exsl:node-set($result-fragment)"/>
<copy-of select="$result/*"/>
<exsl:document href="dependencies" method="text" encoding="UTF-8">
- <for-each select="$result/rdf:RDF/*[nie:interpretedAs/nfo:PlainTextDocument]">
+ <for-each select="$result/rdf:RDF/*[self::书社vocab:SourceFile|self::书社vocab:IncludeFile]">
<value-of select="@rdf:about"/>
<text>
</text>
<for-each select="书社vocab:hasRecursiveDependencyOn/@rdf:resource">
</for-each>
</exsl:document>
<exsl:document href="destinations" method="text" encoding="UTF-8">
- <for-each select="$result//书社vocab:SourceFile">
+ <for-each select="$result/rdf:RDF/书社vocab:SourceFile">
<value-of select="@rdf:about"/>
<text>|</text>
<for-each select="书社vocab:destination">