DITA and XMetaL Discussion
Kris February 17, 2012 at 10:08 am
Custom webhelp XSL in XMetaL 6.0February 17, 2012 at 10:08 amParticipants 1Replies 2Last Activity 10 years, 7 months ago
Is there any way to use a custom.xsl file for generating webhelp output? Just like there's a customization file for PDF output in the DITA_OTdemoxmfoCustomizationfoxsl folder.
I find it really hard to mark all the changes I've made in my dita2htmlImpl.xsl file so I'm wondering if there's a separate customization file.
KrisDerek Read February 17, 2012 at 10:19 pm
Reply to: Custom webhelp XSL in XMetaL 6.0February 17, 2012 at 10:19 pm
The WebHelp plug-in relies on the DITA OT HTML output (transtype: XHTML) to generate the HTML files for each topic, so anything at that level would be difficult to separate (as with any other of the HTML-based outputs: Eclipse, CHM, etc).
However, the WebHelp plug-in is located here if you want to try to make changes to it:
The stuff that lives there primarily affects how the framework surrounding each HTML topic is built (TOC, search, etc).gcrews February 18, 2012 at 5:33 am
Reply to: Custom webhelp XSL in XMetaL 6.0February 18, 2012 at 5:33 am
All my dita2htmlImpl.xsl modifications are in a separate xsl file in a plugin I made. The plugin overrides the 6 or so templates the access the original template. I try and keep all my toolkit modification in plugins but sometimes it’s not always possible. For example, modifying the single html output template or PDF customizations.
I think when we were testing the WebHelp all my xhtml output customizations came across fine. Ultimately though, we ended up using chm2web since the WebHelp didn’t quite cut it for us. We have a mixture of html and DITA in our DITA maps we needed the html indexed as well. I looked into modifying the WebHelp jar that generates the indexes but it wasn’t worth it.
Sometimes I think it might be easier just to modify everything directly. There are some pretty powerful programs to compare files and folders that make seeing the changes very easy. Comparing completely new files though, with a bunch of copied and pasted templates and stuff is a lot harder.
- You must be logged in to reply to this topic.