Philippe Nobili wrote:
>>
>> However, it seems that there is one problem related to the way XMLMind
>> executes commands when converting documents: the *target.db* file is
>> created in the directory where XMLMind was launched first.
>>
>> This is problematic since XMLMind might be launched from directories
>> completely unrelated to the document being processed.
>>
>>   
>>
>> I'm sorry but I don't understand how you intend to use XMLmind XML
>> Editor, an *interactive* *authoring* tool, in order to build the PDF,
>> RTF, HTML, etc, deliverables for a set of olinked documents. In our
>> opinion, this task is inherently better accomplished by a batch process.
>>   And with a batch process, you don't have this current working
>> directory problem.
>>   
> Well, I don't understand your point here.
> 
> There is no problem to build the  deliverables for a set of olinked
> documents directly from XMLMind
> interactive application providing that the target.db is created in the
> document source location rather
>  than in XMLMind  starting directory.
> 
> This does seem to be a big change; of course we also use batch processes
> to convert documents, but this
> is not always the best choice when you have multiple platforms (no
> makefiles on Windows, Ant has to be
> properly installed, etc etc).
> 
> PS: If you can just point us on how to modify the conversion command to
> retrieve the target.db and copy it back
> to the document's source location, I guess it would be fairly sufficient.
> 

There is currently no way for a macro or process command to know which
is the current working directory of XMLmind XML Editor.

Process commands run in a temporary working directory (corresponds to
process variables %W and %w) which is different from  the current
working directory of XMLmind XML Editor.

In next release (4.5; before the end of this month), we'll add macro and
process variables which will point to the current working directory of
XMLmind XML Editor.

Let's suppose this new variable will be called %X. You'll have to add
this kind of copy element to your process commands:

<copy files="%X%Starget.db" to="%P"/>

More information in:

* http://www.xmlmind.com/xmleditor/_distrib/doc/commands/process_copy.html

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



Reply via email to