Steven Noels wrote:
> 
> On 13/05/2003 15:44 JABakken at dstsystems.com wrote:
> 
> > Is there any way within XXE to view and edit the actual source text?
> >
> > Thanks.
> 
> Nope, and it won't happen soon since that's exactly what the authors
> want you to avoid.

True, there is no built-in way to do this (because it is not our job to
do this) but this can been done easily with an external text editor and
the following macro-command:

---
<command name="editXMLSource">
     <macro>
       <sequence>
         <choice>
           <sequence>
             <command name="XXE.save" />
             <command name="run" parameter='emacs "%DF"' />
           </sequence>
           <command name="run" parameter='emacs "%DF"' />
         </choice>

         <command name="XXE.open" parameter="%D" />
       </sequence>
     </macro>
</command> 

<binding>
  <keyPressed code="ESCAPE" />
  <charTyped char="e" />
  <command name="editXMLSource" />
</binding>
---

Adapt this macro to your environment by:
[1] Changing emacs to your favorite text editor. Make sure that this
editor supports Unix-style newlines and the encoding you have chosen for
your XML documents.
[2] Binding the command to a keystroke sequence that does not insert
characters in the document view (A Java bug causes Esc-e to insert 'e'
on Windows. This does not happen not on Linux.).

Read
http://www.xmlmind.com/xmleditor/_distrib/docs/poweruser/ar01s02s02.html
to learn how to install generic custom bindings.

Reply via email to