Editor variables in WebHelp footer files for DITA
Oxygen general issues.
Editor variables in WebHelp footer files for DITA
Environment:
Oxygen 17
DITA source
DITA-OT 1.8 (the one included in the Oxygen installation)
Windows 7 OS
We need to get a part number and build date into the footer of our WebHelp builds.
The ${date} editor variable would work for the build date. The Edit Parameter dialog for the webhelp.footer.file parameter says editor variables can be used in the footer file, but it's not clear to me how to include them so they resolve. I tried adding the variable to the HTML code in the footer XHTMLfile:
When I run the transformation, the editor variable is not resolved; it is output as a literal value. I also tried setting the editor variable directly as the value of the field, but that did not work either. Can anyone point me to a working example? None of my searches have located an example or clear instructions for this use case.
I'm not sure what to do for the part number. We don't want to have to update the footer file each time we run a transform, nor do we want to update a custom editor variable each time. The ideal solution would be to use the value of the <bookpartnumber> element in the bookmap, but I have not seen anywhere that it is passed through to the WebHelp output so it could be consumed. Can we get this value without custom processing?
Oxygen 17
DITA source
DITA-OT 1.8 (the one included in the Oxygen installation)
Windows 7 OS
We need to get a part number and build date into the footer of our WebHelp builds.
The ${date} editor variable would work for the build date. The Edit Parameter dialog for the webhelp.footer.file parameter says editor variables can be used in the footer file, but it's not clear to me how to include them so they resolve. I tried adding the variable to the HTML code in the footer XHTMLfile:
Code: Select all
<body>
<div>${date(yyyy-MM-dd)}</div>
</body>
I'm not sure what to do for the part number. We don't want to have to update the footer file each time we run a transform, nor do we want to update a custom editor variable each time. The ideal solution would be to use the value of the <bookpartnumber> element in the bookmap, but I have not seen anywhere that it is passed through to the WebHelp output so it could be consumed. Can we get this value without custom processing?
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Editor variables in WebHelp footer files for DITA
Post by sorin_ristache »
wintrymix wrote:The Edit Parameter dialog for the webhelp.footer.file parameter says editor variables can be used in the footer file, but it's not clear to me how to include them so they resolve.
In the parameters dialog box if you click on the link associated with the text that says that editor variables are allowed, you can read in the user manual that the Oxygen editor variables can be used and will be replaced in the value of the webhelp.footer.file parameter, which is a file path for this particular parameter, not in the content of the file that is set as the value of the parameter.
You can't get this value without custom processing because it requires modification inside a file that is supplied as a parameter to the DITA transformation. For example you can add a little ANT code at the beginning of the "dita.inner.topics.webhelp" task in the ANT file OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/plugins/com.oxygenxml.webhelp/build_dita.xml (before the xslt task executed inside "dita.inner.topics.webhelp") for replacing a placeholder like ${bookpartno} in your custom footer file with the value of the bookpartno element extracted from the DITA bookmap file.wintrymix wrote:The ideal solution would be to use the value of the <bookpartnumber> element in the bookmap, but I have not seen anywhere that it is passed through to the WebHelp output so it could be consumed. Can we get this value without custom processing?
Regards,
Sorin
<oXygen/> XML Editor Support
Sorin
<oXygen/> XML Editor Support
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