Editor variables to target files in EPUB package
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 18
- Joined: Fri Dec 02, 2016 4:02 pm
Editor variables to target files in EPUB package
Hi,
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?
Kind regards,
Hugo
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:
Code: Select all
${afd}/${cfne}
Kind regards,
Hugo
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Editor variables to target files in EPUB package
Hello,
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: You can copy the file URI of the file (Copy location) from the Archive Browser view.
Regards,
Adrian
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
zip:file:/C:/Users/user/path/to/archive.zip!/path/inside/archive/file.xml
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service