How to print target attributes into the output html files

Post here questions and problems related to editing and publishing DITA content.
luodan
Posts: 19
Joined: Wed Aug 24, 2022 7:20 am

How to print target attributes into the output html files

Post 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
image.png (40.1 KiB) Viewed 276 times
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
luodan
Posts: 19
Joined: Wed Aug 24, 2022 7:20 am

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

Post by luodan »

Problem solved! Thanks for the help :)
Post Reply