--> file="%c%Sthemenliste.xml" is inconsistent, whether with the
application or with the applet.

attribute file must point to *filename*, not to an URL. Therefore you
need to specify: file="%C%Sthemenliste.xml"

Transforming an URL is currently not supported. You simply cannot
specify: file="%c/themenliste.xml".

Unfortunately in the case of the applet or (XXE deployed using Java Web
Start), there is no %C, only a %c (because your configuration is found
in something like jar:http://ZZZ/xxe/xxe_addon.jar!XXX/YYY).

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



--> Then what to do? If themenliste.xml is really found in the same
directory as modulliste.xslt (which is a bit hard to understand), then

[1] Add this to your process command:

<copyProcessResources resources="themenliste.xml"
                       to="themenliste.xml" />

This means: copy themenliste.xml from the configuration directory to the
temporary directory of the process command.

[2] Specify:

<transform stylesheet="modulliste.xslt" cacheStylesheet="false"
file="themenliste.xml" to="out.txt" />

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



Marc Haemmerle wrote:
> I use the following command to get values from an xml file by xslt, to
> let the user pick a value and insert it into the text.
> 
> 
>             <command name="myDita.pickcomponentprocess">
> 
>                         <process showProgress="false">
> 
>                                    <transform
> stylesheet="modulliste.xslt" cacheStylesheet="false"
> file="%c%Sthemenliste.xml" to="out.txt" />
> 
>                                    <read file="out.txt" encoding="UTF-8" />
> 
>                         </process>
> 
>             </command> 
> 
>  
> 
> That works perfectly if i start xxe local. If i use the applet, i get
> the error message shown on the screenshot appended to this e-mail.
> 
> Why does xxe prepend the filepath?
> 
> How can I fix that?



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

Reply via email to