On Windows %p does not work for me, only file:///%P or file:\\\%P 
works.  When converting to PDF, HTML etc, I've customised xslMenu.incl 
to use stylesheets found in the same directory location as the document 
you're trying to convert.

When using file:///%P to specify the location of the stylesheets, it 
works as expected:

Transforming XML file "__doc.xml" to "__doc.fo" using 
"file:///C:\CTC_Benchbook/stylesheets/fo/mystyle.xsl"
Compiling style sheet "file:/C:/CTC_Benchbook/stylesheets/fo/mystyle.xsl"

When using %p I get the error "Command execution has failed":

Transforming XML file "__doc.xml" to "__doc.fo" using 
"file:/C:/CTC_Benchbook/stylesheets/fo/mystyle.xsl"
Compiling style sheet 
"file://SAURON/C:/CTC_Benchbook/stylesheets/fo/mystyle.xsl"

SAURON is the server name where my customisations live, ie in
F:\.windata\Application Data\XMLmind\XMLEditor\addon\config\docbook\, 
where the F drive is mapped to \\SAURON\username\.

Dominique


Hussein Shafie wrote:

>Dominique Lind wrote:
>  
>
>>For all our uses running windows, the desktop is actually a network
>>drive.  If you try converting a docbook xml file to html for example,
>>when you browse to the desktop as the save directory in the "browse box"
>>the path is displayed in the form "\\SERVER\username\.windata\Desktop".
>>
>>But then when you click save the directory path is changed to
>>"/username/.windata/Desktop/" in the "save directory box" within XXE, ie
>>it strips out the server name.  So then when you click ok to do the
>>conversion, you get this error message:
>>
>>   Command execution has failed:
>>   Cannot create directory "\\"
>>
>>
>>However it does work properly, as expected, if you manually type in the
>>server name, ie changing the save directory path to
>>"//SERVER/username/.windata/Desktop/".
>>Is there a reason the server name is stripped out? 
>>    
>>
>
>"\\SERVER\username\.windata\Desktop\" is converted to this URL:
>"file://SERVER/username/.windata/Desktop/".
>
>Unfortunately, the "Choose URL" dialog box does not support the concept
>of a server for the "file:" protocol. Therefore it simply cannot work.
>
>The workaround is of course to map "\\SERVER\username" to a drive.
>
>This bug will not be fixed. We intend to completely rewrite the whole
>Choose URL dialog box in a couple of releases.
>
>
>
>
>
>  
>
>>I've also had similar problems using the variables %p and %P in macro and 
>>process
>>commands.  Under linux (debian) %p or file://%P works fine, but not
>>file:///%P. However under windows (2000 professional) only file:///%P
>>works.
>>    
>>
>
>This problem is not related to the above one.
>
>Please do not use "file:///%P" or  "file://%P" on any platform. If it
>works, it is by pure luck. %P is the *filename* of a directory (i.e. it
>contains backslashes on Windows). %P is *not* the path part in an URL.
>
>Please use %p. Just %p or %p/something.
>
>See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/ch04s01s02.html
>
>
>
>  
>
>>I'm currently using the pro edition V2.11, though I'm sure this was a
>>problem in earlier versions and the std edition as well.
>>    
>>
> 
>--
>XMLmind XML Editor Support List
>xmleditor-support at xmlmind.com
>http://www.xmlmind.com/mailman/listinfo/xmleditor-support
>
>  
>

-- 
Dominique Lind
Systems Officer
Judicial Commission of New South Wales
Phone: (02) 9249 4421
Email: dlind at judcom.nsw.gov.au
Website: www.judcom.nsw.gov.au



__________________________________________________

This Message is intended for the addressee named and may contain confidential 
information.
If you are not the intended recipient, please delete it and notify the sender.
Views expressed in this message are those of the individual sender and not 
necessarily the views of the Judicial Commission of NSW.

Reply via email to