Marc wrote:
> I try to call a XSLT stylesheet from a menu, I try this command :
> <command name="Jurisprudence.XML2Html">
>     <process showProgress="true">
>         <copyDocument to="%P/../FicheTemporaire.xml" indent="true"/>
>         <transform stylesheet="../../../XSLT/AffichageFicheJurisprudence.xsl" 
> file="%D" to="./FicheTemporaire.htm"/>
>     </process>
> </command>  
> (the copy is there because other try)
> but I have this error messages :
> ----------
> Copie du document vers 
> "E:\Travail\LPAC\Unedic\GestionFonds\FondsCourant\FondsJurisprudence\2005/../FicheTemporaire.xml"
> Transformation du fichier XML 
> "E:\Travail\LPAC\Unedic\GestionFonds\FondsCourant\FondsJurisprudence\2005\F050222CassSocBouchara.xml"
>  en "./FicheTemporaire.htm" en utilisant 
> "../../../XSLT/AffichageFicheJurisprudence.xsl"
> Compilation de la feuille de style 
> "file:/D:/GestionFonds/XSLT/AffichageFicheJurisprudence.xsl"
> Traitement du fichier XML 
> "E:\Travail\LPAC\Unedic\GestionFonds\FondsCourant\FondsJurisprudence\2005\F050222CassSocBouchara.xml"
> Erreur fatale: Failure reading 
> file:/E:/Travail/LPAC/Unedic/GestionFonds/FondsCourant/FondsJurisprudence/2005/F050222CassSocBouchara.xml
> --------------
> I really don't understand why I simplify really the call.
>   

I don't want to offend you but your process command has too much errors. 
I simply cannot list them all here.

Just a couple of these errors:

In <copyDocument to="%P/../FicheTemporaire.xml" indent="true"/>

* %P is a Windows pathname that you mix with path segments separated by '/'.

* "%P/../" gets in the way. Process commands are always executed in a 
private *temporary* *directory* created just for this reason. 
copyDocument always creates its copy in this temporary directory.

You really need to spend time reading and understanding "Chapter 5. 
Process commands" of "XMLmind XML Editor - Commands" 
http://www.xmlmind.com/xmleditor/_distrib/doc/commands/process.html

I'm sorry to tell you that because I know this takes a long time and is 
very annoying.


Reply via email to