Page 1 of 1

Override Smart Paste for DITA?

Posted: Wed Jun 11, 2014 11:01 am
by Frank Ralf
Hi,

We've been using Smart Paste for converting some Word content to DITA, which works as promised. However, we use a specialized DTD which for example requires <li> items to include a <p> tag. Therefore we would like to override the default Smart Paste behavior. Is that possible? And if, how? I've already looked at the following posts:

"Override Smart Copy-Paste of XHTML document"
http://www.oxygenxml.com/forum/topic10446.html

"Smart paste from Google Docs"
http://www.oxygenxml.com/forum/topic7876.html

Kind regards,
Frank

Re: Override Smart Paste for DITA?

Posted: Wed Jun 11, 2014 3:28 pm
by sorin_ristache
Hi,

You can modify the DITA elements that are created by the Paste action in a DITA topic in the file:

OXYGEN_INSTALL_DIR\frameworks\dita\resources\xhtml2dita.xsl

You can insert a <p> element in every place where a <li> element is created in the above XSLT file.


Regards,
Sorin

Re: Override Smart Paste for DITA?

Posted: Wed Jun 11, 2014 5:59 pm
by Frank Ralf
Wow, that sound's really cool! Many thanks for the quick response and the pointer, Sorin.