Kevin Flynn wrote:
> 
> As a temporary fix to get around a current limitation in XXE (inability 
> to use catalogs with xinclude), 

This limitation is removed in XXE v4 (at the expense of a regression 
elsewhere).



> I made a  macro to copy a shared 
> "include" file from a central location to the local folder. A "refresh 
> includes" function in the UI lets you get the latest version of the file 
> when required. As a final fallback, if nothing else is available, the 
> macro copies a reserve version of the file from the XXE installation as 
> follows:
> 
>  <command name="ec.getGlobalVariablesFromXxe">
>    <process showProgress="false">
>      <copy files="%C%Svariables%Sglobal-variables.ebk" 
> to="%P%Sglobal-variables.ebk"/>
>    </process>
>  </command>

That's normal, "%C" is a filename. When XXE is deployed using Java Web 
Start, all configurations are packed in a single .jar file which is 
downloaded and cached somewhere by Java Web Start.



> This works fine in a local installation, but not from a webstart 
> deployment. %C appears not to be set in this case.
> 
> I have a feeling I have seen a report of a similar problem on the list 
> recently, but I can't seem to find it in the archives - sorry if I'm 
> repeating stuff.
> 

This should work, even when XXE is deployed using Java Web Start:

  <command name="ec.getGlobalVariablesFromXxe">
    <process showProgress="false">
      <copyProcessResources resources="variables/global-variables.ebk"
                            to="%P%Sglobal-variables.ebk"/>
    </process>
  </command>

See 
http://www.xmlmind.com/xmleditor/_distrib/doc/commands/copyProcessResources.html

Reply via email to