Skip to content
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

Feature request: a map with information necessary for copying media files #482

Open
fsteimke opened this issue Feb 27, 2024 · 0 comments
Open

Comments

@fsteimke
Copy link
Contributor

fsteimke commented Feb 27, 2024

Section 3.4 "Managing media" includes a note which states that Actually copying the media files from where they are in the source system to where they need to be in the HTML is “not our problem”. That's true, but in order to support users to solve this problem, it would be helpful when the stylesheets would provide a map (or other datastructure) which holds for every media file

  • the path / URI to the source file;
  • the path / URI where the generated HTML file expects them

Users of the stylesheets could

  • serialize this map and use it as an input for following steps (shell or ant scripts, for example)
  • use it in the post-processing step to copy files with the expath:file module, if they have Saxon PE or EE

See the xsl:message at the end of template for h:img/@src, in default-mode m:chunk-cleanup in file chunk-cleanup.xsl (line 626 ff). Seems to display for an image uri:

  • the author’s original value,
  • the uri that was calculated in mode m:mediaobject-uris,
  • the adjusted uri from mode m:mediaobject-output-adjust which will be used in the HTML

Greetings, Frank

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

No branches or pull requests

1 participant