Closed steinbacher01 closed 4 years ago
I'm getting this in the output. Figure 4-1 Figure 4-3 Figure 4-5
Not sure why you got this result because counting figure does not take into account whether fig contain imagemap
or not.
Could you send me your sample source files?
Here are my sample source files. I've included both the GE and default PDF5.ml outputs.
My guess is that imagemap is specialized from fig, so it is counting it twice. I'm thinking about changing the not(contains) to check for a nested fig. Maybe something like topic\fig\fig.
What do you suggest?
Thanks,
Leroy
My guess is that imagemap is specialized from fig
I missed this! Please confirm the updated result.
By the way how do you use imagemap in PDF output? I think it is useful for HTML but not for PDF.
Regards,
The result looks good. Thanks!
We use imagemaps for identifying replaceable parts on a device. The callouts in the fig link to a row in a table that contains the part number and information on how to replace the part.
This allows us to publish the same bookmap to PDF or webhelp with the same functional links.
Thanks again,
Leroy
This allows us to publish the same bookmap to PDF or webhelp with the same functional links.
Thank you! I understand your usage.
We've extended PDF5.ml to support imagemap links. But I've just discovered that the figure title is counting a fig with an imagemap twice.
I'm getting this in the output.
Figure 4-1 Figure 4-3 Figure 4-5
I tried to modify the value of the figCurrentAmount variable in dita2fo_bodyelements.xsl, but it doesn't change anything.
I added: [not(contains(@class,' topic/imagemap '))]
`
</xsl:variable>`
Any suggestions?
I can provide sample source files if needed.
Example fig with imagemap:
`