]> Lady’s Gitweb - Shushe/commit
Pass single result tree to modes in wrapper 0.4.2
authorLady <redacted>
Sat, 20 Jan 2024 17:02:33 +0000 (12:02 -0500)
committerLady <redacted>
Sat, 20 Jan 2024 17:06:56 +0000 (12:06 -0500)
commitbf451bf2f46fd1ea21f925ee02db620859cf2100
tree14af0896eef6187bdff4891c743da17ce2f84cf5
parent3b97090500b8714bd32d01e4e4ac2c10cdbdf713
Pass single result tree to modes in wrapper

When matching a `<xslt:include>` inside of a `书社:metadata` transform,
it’s useful to be able to easily match elements in the result. Right
now, that requires a reference to the little‐documented variable
`$书社:result`, because `<xslt:include>` elements don’t belong to the
same document as result tree elements.

This commit creates a new tree which simply copies over all the result
nodes and all of the `<xslt:include>` elements, and then passes that to
the modal templates. Consequently, matches like `/html:div` or
`/xslt:include` should work regardless of what the current context node
is.
lib/catalog2transform.xslt
This page took 0.028716 seconds and 4 git commands to generate.