Need help adding custom attribute in the tags

23 views
Skip to first unread message

Gurushesh Pawar

unread,
Aug 20, 2024, 5:27:19 AM8/20/24
to DITA-OT Users
I have a DITA source where some tags have the attribute demo-data="1" (see the example below). When I try to transform the DITA to HTML5 using the default HTML5 transform type, I encounter an error like Attribute "demo-data" must be declared for element type "p". My question is, how can I ensure that any tag with the attribute demo-data="1" is copied to the corresponding HTML output tag in the HTML5 plugin? How can I declare demo-data attribute?

Example Input:-
<p demo-data="1" class="- topic/p ">Engage Home</p>

Expected output:-
<p demo-data="1" class="p">Engage Home</p>

also value of demo-data attribute can be anything

Toshihiko Makita

unread,
Aug 20, 2024, 6:56:33 AM8/20/24
to DITA-OT Users
Reply all
Reply to author
Forward
0 new messages