AntennaHouse / pdf5-ml

Antenna House PDF5-ML DITA-OT Plug-in
23 stars 9 forks source link

Footnote within p element not working #125

Closed steinbacher01 closed 4 years ago

steinbacher01 commented 4 years ago

The fn element within a p element is is not working.

I'm seeing these errors in the log (attached). log.txt

[xslt] [getFootnotePrefix 037W] The fn element does not have table,simpletable,ul,ol,dl,glossdef as ancestor. This fn will be ignored.

[exec] AHFCmd :INFO: Unresolved internal-destination: "dita-merge.concept1.conbody1.p1.fn1

I published the same to PDF and PDF2 and fn is working as expected within p.

Thanks,

Leroy

ToshihikoMakita commented 4 years ago

It is based on the stylesheet principal design. PDF5-ML does not generate fo:footnote. Instead the footnotes are listed below the table, simpletable, ol, ul only. In other words, PDF5-ML limits fn authoring only in table, simpletable, ol, ul. This design will not change in the future version.

steinbacher01 commented 4 years ago

Thanks for the explanation. It looks like we will need to add our own customization to support fn in other contexts. We've done this already in older versions of PDF5.ml. Are there any constraints or issues that we should consider?

ToshihikoMakita commented 4 years ago

Are there any constraints or issues that we should consider?

No, it may be done in the same manner with PDF5. You can call template "makeFootNote" in any context as you need in PDF5-ML.

Hope this helps your development.

steinbacher01 commented 4 years ago

Thanks for the response!