From: Lady <redacted>
Date: Sat, 22 Jun 2024 17:02:24 +0000 (-0400)
Subject: Generate dependencies & destinations with metadata
X-Git-Tag: 0.11.1~2
X-Git-Url: https://git.ladys.computer/Shushe/commitdiff_plain/be24d75be02ad626c13c0b52cdc30e2ef8735c9f?hp=be24d75be02ad626c13c0b52cdc30e2ef8735c9f

Generate dependencies & destinations with metadata

This commit obviates the need for separate `metadata2dependencies` and
`metadata2destinations` transforms and simply bundles their
functionality into `expandmetadata`.

Making this work right is a bit tricky because we are outputting the
main document to `stdout` but want the other result documents to be
output to `BUILDDIR`. The best solution would be to just read in the
build directory inside of the transform and use it to determine the
output location, but unfortunately `exsl:document` does not support
dynamic computation of the destination directory. The current solution
is instead to `cd` into the build directory in a subshell before
calling `xsltproc`.
---