I have a fairly straightforward enhancement request: copy-as-text. Some
document editors offer functionality such as "Copy special", which can
be used to save the current selection in the clipboard in a different
format. My users, in particular, have been asking for the capability of
copying just the textual content of the current selection for pasting
into other contexts.
For example, if, given the following document -
---
<section><title>Some title</title><para>Hello. And hello
again.</para></section>
---
- the user had selected from "Some" through "Hello." and wanted to just
copy that text, the clipboard should hold the following -
---
Some title
Hello.
---
I tried to implement this using an XSLT script to extract the text
content of a document, but I could not find a way to copy the system
clipboard to a document for conversion within a process command. There
is the "selection" attribute of the "copyDocument" element, but that
does not allow one to access arbitrary user selections.
If there is a way to apply a "transform"ing process command to the
clipboard (populated using the "copyToClipboard" command), then that
would be sufficient for what I am trying to do (and powerful enough for
a great deal more). If not, then I humbly submit a feature request
either to be able to copy clipboard contents to a file within the
context of a process command (<cfg:copyContent/>?) or for XXE to
internally implement a copy as text feature or even a more powerful
(possibly even configurable) "Copy special" feature.
I suppose while I'm going one direction, I may as well ask for a "Paste
special" feature. It would be very cool to be able to paste xhtml
content into a DocBook file, using some configuration magic
behind-the-scenes to apply an XSLT transform to that clipboard contents
to produce the necessary DocBook (or any particular XML application).
Thanks for listening.
Take care,
John L. Clark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url :
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20051005/94cbbf89/attachment.sig