jeffcc wrote:How can I insert the JSP constructs in the WebHelp output html pages. Which XSLT files need to be modified to insert the jsp constructs in the output.
That is possible but you have to let go of the search function available on the Search tab because the search feature needs to index the WebHelp pages, that is XHTML pages, that is well-formed XML pages. Inserting the <%
characters in an XHTML page will break the XML well-formed property.
If you can live without the search function then you should look at the XSLT files located in directory OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/plugins/com.oxygenxml.webhelp/xsl
. You can start with createMainFiles.xsl
that creates the index.html
main file and with dita/dita2webhelp.xsl
that creates the content of the right-side panel of the WebHelp pages. You can find also details about what XSLT files you need to modify in the ANT script OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/plugins/com.oxygenxml.webhelp/xsl/build_dita.xml
jeffcc wrote:Will this effect the index and search features of webhelp.
Yes, because the search function will not be available anymore, because the WebHelp pages can't be indexed anymore, as I explained above.
jeffcc wrote:Do the output files have to be html or can they have a jsp filename extension?
The file extension is not important as long as it is consistent (all WebHelp pages have the same extension), it is recognized by the web browser on the client side, and it is set also in the args.outext
parameter of the WebHelp transformation (which means the file extension must be set as a DITA transformation parameter
, not as a type of post-processing external batch process that modifies the extension of all WebHelp pages after they are generated by the DITA transformation).