Bonjour Hussein, Ok then I will do 2 macros one for a link in the same file and an other one for an external file. I will try the relativize-uri function. I don't find it in the documentation, but now I found all this external function, it's very good. -- Cordialement, Marc Courriel : Marc.Liste at free.fr ----------------------------------------- Le mardi 30 janvier 2007 ? 12:39:39, vous ?criviez :
HS> Marc wrote: >> I have a problem with the use of <choice>, I want that the user select a >> file with selectURL and if he choices Cancel, I use the current file. >> I do something like this : >> <sequence> >> <choice> >> <command name="selectFile" >> parameter="openFileURL %d"/> >> <get expression="%d"/> >> </choice> >> <set expression="%_" variable="NomFichier" >> plainString="true"/> >> <get expression="$NomFichier"/> >> <set variable="Liste" >> >> expression="join(document($NomFichier)//@AccrocheLien,' ')"/> >> <get expression="$Liste"/> >> <command name="pick" parameter="'Choisir >> AccrocheLien' false %_"/> >> <set expression="%_" variable="Accroche" >> plainString="true"/> >> </sequence> >> but when I choice Cancel, the macro stops. HS> This is the normal behavior. Canceling command "selectFile" means HS> aborting the whole macro. HS> I'm sorry but I don't see how to implement this behavior: HS> --- HS> <choice> HS> <command name="selectFile" parameter="openFileURL %d"/> HS> <get expression="%d" plainString="true" /> HS> </choice> HS> --- HS> -- HS> XMLmind XML Editor Support List HS> xmleditor-support at xmlmind.com HS> http://www.xmlmind.com/mailman/listinfo/xmleditor-support

