Discovering the right extension point
Posted: Tue May 19, 2015 7:33 pm
Hi,
I need to generate a custom filtered XML file containing keys and relative URLs to the physical XHTML output files. This is my map (pseudocode):
This is what I need:
So, what I (think I) have to do is this:
I'm going to write a new DITA-OT plugin and add it as a dependency to the Webhelp pipeline. It would be nice, if I could avoid writing Java and stick to XSLT. Now, here is my question
:
How would you proceed?
How can I examine/debug the processing pipeline to find out the correct extension point to pick the information I need to generate the file? I have only low experience with debugging DITA-OT plugins, because usually it is enough to override dita.xsl.xhtml.
I'd appreciate any hints, links or tutorials.
Thanks a lot and best regards
Stefan
I need to generate a custom filtered XML file containing keys and relative URLs to the physical XHTML output files. This is my map (pseudocode):
Code: Select all
<map>
<topicref keyref="MyTopic1" audience="Admin"/>
<topicref keyref="MyTopic2"/>
<topicref keyref="MyTopic3"/>
<topicref keyref="MyTopic4" audience="Admin"/>
<topicref keyref="MyTopic5" audience="Admin"/>
</map>
Code: Select all
<links>
<link key="MyTopic2" path="path/to/my/topic2.html"/>
<link key="MyTopic3" path="path/to/my/topic3.html"/>
</links>
- Filter the map
- Store the keys temporarily
- Resolve the keys (because I need the relative path)
I'm going to write a new DITA-OT plugin and add it as a dependency to the Webhelp pipeline. It would be nice, if I could avoid writing Java and stick to XSLT. Now, here is my question

How would you proceed?

How can I examine/debug the processing pipeline to find out the correct extension point to pick the information I need to generate the file? I have only low experience with debugging DITA-OT plugins, because usually it is enough to override dita.xsl.xhtml.

I'd appreciate any hints, links or tutorials.

Thanks a lot and best regards
Stefan