Override Smart Paste for DITA?
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 482
- 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
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
parson AG
www.parson-europe.com
-
- 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
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
-
- Posts: 482
- 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
parson AG
www.parson-europe.com
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service