Skip to content

Allow secondary documents in transforms. Add ghost:sourcefile attribute to img elements #599

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fsteimke
Copy link
Contributor

@fsteimke fsteimke commented Jun 5, 2025

See Issue #598

Changes the signature of fp:run-transforms in docbook.xsl to return a map(*) instead of a document node.

The implementation may seem over-complicated. I started with the obvious approach: only one map within the xsl:iterate for the principal result and secondary results. Which worked fine for most of the tests, but failed without any error message at table-cals.049, which is a huge table. I can only suspect that there is a problem with very large values inside maps in saxon under special circumstances? So i have to use two parameters within xsl:iterate: a document-node for the principal document, and a map for secondary result documents. Both are merged into a single map as function result on completion.

I also added a ghost:sourcefile to image files. My main motivation for secondary results in pipelines are copy instructions for media files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant