Have done it backwards … meaning RenderX’s VisualXSL comes with a custom Word
Plug-in to copy content in the Word document (which can be captured as WordML)
and then transforms it into the format that VisualXSL supports. The Word code
places our own clipboard format (which is simply XML) and you can paste in
VisualXSL.
I would imagine that the process can be inverted of course but never thought of
it.
From: Larry Hayashi lhtrees(_at_)gmail(_dot_)com
[mailto:xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com]
Sent: Wednesday, January 23, 2019 10:58 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] From XML to Windows clipboard as styled data to be pasted into a
MS-Word document
I am wondering if anyone has any experience in transforming an XML document
into a format that could be pasted from the Windows clipboard into a Word
document. The Word document will have a particular doc template with named
styles and the transformed data will need to utilize those styles (set in a
preferences interface in a custom application). I want to use XSL on the XML
source and I suspect that I need to generate Rich Text Format, but maybe there
is a less verbose format than RTF, perhaps some XML doc format for pasting
styled/formatted text into Word??
The scenario would be something like this:
Linguistic application has interlinear text with sentences. User selects and
copies one interlinear text sentence. On copy, the application uses an internal
XML version of the selected text which would be transformed into RTF or
equivalent. User pastes beautifully formatted example into their Word document
with correct auto numbering styles, etc.
Thanks for any advice.
Larry
XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>
EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/3183067> (by
email <> )
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--