0

假设我有一个 ditamap 文件。我已发布到 html5。发布后假设我的 html 文件看起来像

<body id="SampleTopic">
    <h1 class="title topictitle1" id="ariaid-title1">Sample topic</h1>
    <div class="body">
        <p class="p">some<strong class="ph b">bold</strong><span class="ph special">text</span></p>
        <div class="p">
            <dl class="dl">

                    <dt class="dt dlterm">Term</dt>
                    <dd class="dd">Defination</dd>

            </dl>
        </div>
    </div>
</article>

</body>

在 Html 文件中,我想在 body 元素上添加一些新属性,例如 <body id="SampleTopic" class="test">

那么任何人都可以帮我解决这个问题吗????我可以添加一些插件,如果可以,如何编写代码???

4

1 回答 1

0

如果您只需要 HTML@class属性,则无需开发自定义插件。

您只需为 DITA 源文件中元素的@outputclass属性指定一个值,该值将传递给@class输出中的 HTML 属性。

于 2020-06-09T10:55:19.367 回答