Here should go questions about transforming XML with XSLT and FOP.
- Posts: 18
- Joined: Fri Dec 02, 2016 4:02 pm
I have made a transformation scenario to alter the opf in an EPUB package. I would like the opf to be overwritten within the archive, but I can't seem to find the correct editor variables in the output settings of the transformation scenario. I've tried different things, like:
This saves the transformed opf outside
of the archive in the same folder where the archive is. However, I would like to save it within
the archive, so that the original opf is replaced by the transformed opf. Is this possible? And if so, are there editor variables for this?
- Posts: 2740
- Joined: Tue May 17, 2005 4:01 pm
It is simply not possible for the output of a transformation scenario to be stored anywhere else than in the local file system. Note that you can only specify paths (not URLs) in the "Save as" field of the scenario. There is no file path that can indicate a file from within an archive.
So, while you can use as input a URL that indicates a file from within an archive, you can't write it back to an archive as the output of a transformation scenario. You could use xsl:result-document/@href
in the XSLT stylesheet to write it to a URI that indicates the file from within the archive.
Archive URIs that Oxygen supports look like this:
Code: Select all
You can copy the file URI of the file (Copy location) from the Archive Browser
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger