Reply to: Help with DITA-OTDecember 17, 2010 at 6:50 am
the code around 619 is for the choices, the actual li choice items are created in the call on line 661. This calls the template matching topic/li since there is no matching templates for task/choice. The topic/li template is around line 1273 of to dita2htmlImpl.xsl.
It calls this because of the dita inheritance of “- topic/li task/choice “
You will most likely want to add your code around line 1304 just before the ending li tag. Since your not matching items in a for loop but rather a template match the position code you have will not quite work since it counts text nodes. It might work if you use last() – 1 but im not sure if it would work if there are child nodes on the last choice. There a couple of ways o go about figuring out if your on the last node. you might try something like: