Is it possible with XXE Professional to use command transform in order to 
achieve an in-place XSLT transformation of the whole current XML document?

With the following command definition, XXE only returns the result as "output 
of command", but does not substitute the original document version:

<command name="mytransform">
  <process showProgress="false">
    <copyDocument to="TMP_in.xml" />
    <transform stylesheet="mytransform.xsl"
      version="2.0"
      file="TMP_in.xml" to="TMP_out.xml" />
    <read file="TMP_out.xml" encoding="UTF-8" />
  </process>
</command>

I have observed that if in-place transformation is restricted to a selected 
node (of course with <copyDocument selection="true" to="TMP_in.xml" />), 
substitution works fine.

Remembering that the root element can't be replaced in XXE through the Edit 
menu, I wonder if this restriction also applies if the name and attributes of 
the root element remain unchanged in the results of command transform.

(At least, this limitation of command transform is not mentioned in the docs:
http://www.xmlmind.com/xmleditor/_distrib/doc/commands/transform.html )

How could I manage to transform my document in-place (or make it seem as if it 
happened that way)?

Yves
 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to