On 10/08/2010 02:20 PM, Skopik Pavel wrote: > > I wonder whether it is possible to copy the result of xsl a > transformation to the clipboard.
The copy command clearly does not allow to do that (otherwise this would have been documented). See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/copy.html You need to use: --- <set variable="clipboard" expression="%_" plainString="true"/> --- See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/macro_reference.html See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/xpath_vars.html However this feature is almost *never* needed. See below. > > > I need to do the following: > > > > 1. Select a node with siblings. > 2. Run a xsl transformation on this node. > 3. Store the result in the clipboard. > 4. Paste the contents of the clipboard into the document. > > > > I tried to store the result of the transformation to the clipboard using > the copy command with the %_ parameter but this does not work. > --> Given what you need to do, "3. Store the result in the clipboard." is not needed. "2. Run a xsl transformation on this node." is a process command which must end with <read>. See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/read.html The <read> process child element returns in %_ the result of the XSL transformation as plain text. This plain text is expected to start with "<?xml". "4. Paste the contents of the clipboard into the document." must be immediately preceded by the process command. This paste command looks like: <command name="paste" parameter="after[implicitElement] %_"/> See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/paste.html --> This example http://www.xmlmind.com/xmleditor/_distrib/doc/commands/para_to_simpara.html is probably very similar to what you want to do. Notice <process showProgress="false"> and <transform cacheStylesheet="true">. -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

