Need help adding custom attribute in the tags #4505
Unanswered
Gurushesh-Metapercept
asked this question in
Q&A
Replies: 1 comment
-
You have two issues here:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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?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
Beta Was this translation helpful? Give feedback.
All reactions