Page 1 of 1

How to print target attributes into the output html files

Posted: Mon Mar 18, 2024 1:09 pm
by luodan
Hi,
We attempted to add two attributes to the DITA files to identify sections that need to be rendered for the frontend. However, when attempting to publish them into HTML files, we found that those attributes no longer exist.

The newly added attributes:
image.png

Re: How to print target attributes into the output html files

Posted: Mon Mar 18, 2024 1:26 pm
by Radu
Hi,
By default profiling attributes are removed and handled in the profiling/filtering stage of the publishing process.
If for publishing you use a DITAVAL filter file you can specify "passthrough" for certain profiling attributes or attribute/value combinations in order to pass them to the published output:

Code: Select all

<val>
    <prop action="passthrough" att="deliveryTarget"/>
    <prop action="passthrough" att="otherprops"/>
</val>
https://www.oxygenxml.com/dita/1.3/spec ... attributes

Regards,
Radu

Re: How to print target attributes into the output html files

Posted: Tue Mar 19, 2024 4:43 am
by luodan
Problem solved! Thanks for the help :)