Including specialized attributes in @class
values of html5
transformation output
#3965
-
We specialize some custom attribute values from For example, consider a case where I have
How can I pass |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
If I apply the following template in an XSLT stylesheet that extends the
then I get the following HTML5 output:
and now I can apply CSS formatting:
Here is a testcase you can experiment with: ditaot_atts_in_outputclass.zip To try it, extract it and run the following commands:
|
Beta Was this translation helpful? Give feedback.
-
As an alternative if your attributes were specialized from @props you could have stated in the ditaval file that you want them to pass through:
and they would have been passed as "data-foo" attributes in the resulting HTML. |
Beta Was this translation helpful? Give feedback.
If I apply the following template in an XSLT stylesheet that extends the
dita.xsl.html5
extension point:then I get the following HTML5 output: