Override Smart Paste for DITA?

Post here questions and problems related to editing and publishing DITA content.
Frank Ralf
Posts: 457
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

Override Smart Paste for DITA?

Post 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
Frank Ralf
parson AG
www.parson-europe.com
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Override Smart Paste for DITA?

Post 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
Frank Ralf
Posts: 457
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

Re: Override Smart Paste for DITA?

Post by Frank Ralf »

Wow, that sound's really cool! Many thanks for the quick response and the pointer, Sorin.
Frank Ralf
parson AG
www.parson-europe.com
Post Reply