Bonjour Hussein,
I read the chapter more than one time and do a lot of try about the 
copyDocument, the problem of the \ and / (that runs without problem in the way) 
are there because of try with the %p and I have the file FicheTemporaire.xml in 
the directory (not the temporary) without problem.
The error comes from the transform and not from thje output file but for the 
input one, where I try to use the %D or the %d, in the example to show the 
error I don't use the result of the copyDocument (but I forgot to suppress the 
unused line).

-- 
Cordialement,
 Marc                            Courriel : Marc.Liste at free.fr
-----------------------------------------
Le jeudi 13 d?cembre 2007 ? 10:40:52, vous ?criviez :

HS> 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.
>>   

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

HS> Just a couple of these errors:

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

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

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

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

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

 
HS> --
HS> XMLmind XML Editor Support List
HS> xmleditor-support at xmlmind.com
HS> http://www.xmlmind.com/mailman/listinfo/xmleditor-support


Reply via email to