Hi there,

I currently have a semantical way to separate portions of my 
document into different modules

I just use a <inline-group src="../module/whatever.xml">

to reference the other file.


I'ld like to be able now to have XXE open this file for edit when 
I ctrl-doubleClick it.

I already have the current binding and command defined:

   <!--
       | tox.openModule
       | Instructs XXE to open an editor window for the current
       | selected module
       -->
   <command name="tox.openModule">
     <macro>
       <sequence>
         <command name="selectNode"
                  parameter="ancestorOrSelf inline-group" />

        <!-- HERE I NEED THE MEAT ON THE BONE -->

       </sequence>
     </macro>
   </command>



   <binding>
     <mouseClicked2 button="1" modifiers="ctrl" />
     <command name="tox.openModule" />
   </binding>


Obviously the command needs some more, I can't seem to find the 
build in commands to perform the required actions, so I plan to 
build some custom Java Commands to get to doing it.  Finding the 
correct Java API calls is however not that easy either.

These are the 3 small commands that should tackle my problem:
1. tox.readAttribute att_name

returns the value of the @att_name on the selected node
(strange that this is not available already?)


2. tox.resolveSrc fileRelative path
    tox.resolveSrc sysPropRelative path sysPropName

returns the resolved version of the path variable into an 
absoluteFileName by either using the current file location (1st 
version) or using a base-path found in a Java system property 
(2nd version of the command)

Question: for the first version: is there a way to grab the 
current file location? Which method/object I should ask?

3. tox.openFile path

instructs xxe to open the file in a new document window.

Question: is there a way to do this? what is the method/object 
this should go to?

thx for any pointers,
-marc=
-- 
Marc Portier                            http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at              http://radio.weblogs.com/0116284/
mpo at outerthought.org                              mpo at apache.org


Reply via email to