<hr> tag in DITA

Post here questions and problems related to editing and publishing DITA content.
akhoy
Posts: 8
Joined: Tue Jul 25, 2017 12:47 pm

<hr> tag in DITA

Post by akhoy »

Hi,

When I add a <hr> tag in the Oxygen editor, it is ignored before generating DITA XML. It looks like it's not supported. Is there an alternative for adding a horizontal line?

Thanks.
Radu
Posts: 9057
Joined: Fri Jul 09, 2004 5:18 pm

Re: <hr> tag in DITA

Post by Radu »

Hi,

As far as I know there is no <hr> element in the DITA standard.
Maybe you could add a "<div outputclass="hr"/>" and then create a custom CSS which does something like:

Code: Select all

.hr{
border-top: 1px solid black;
}
In the transformation scenario in the Parameters list there is an args.css param which should point to your custom CSS and an args.css.copy param which can be enabled to automatically copy your custom CSS to the output folder.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply