Home Forums DITA and XMetaL Discussion Help with DITA-OT Reply To: Help with DITA-OT

gcrews

Reply to: Help with DITA-OT

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 “
http://docs.oasis-open.org/dita/v1.1/CS01/langspec/langref/choice.html

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:

     

or,

Reply

Products
Downloads
Support