dita-ot / dita-ot

DITA Open Toolkit — the open-source publishing engine for content authored in the Darwin Information Typing Architecture.
https://www.dita-ot.org
Apache License 2.0
386 stars 193 forks source link

DITAVAL "passthough" action does not work for profiling applied to top-level (root) topic element #4464

Open chrispy-snps opened 1 month ago

chrispy-snps commented 1 month ago

Expected Behavior

If I have a profiling attribute applied to a <topic> element, and I specify action="passthrough" for that profiling attribute, I expected to see corresponding data-attname passthrough attributes in the HTML output.

Actual Behavior

The data-attname attribute is missing for top-level (root) <topic> elements, although it is generated as usual for nested <topic> elements:

4464

Possible Solution

Not sure - perhaps update a template somewhere?

Steps to Reproduce

  1. Download the following testcase: 4464.zip
  2. Run the following command: dita --project project.xml

Environment