Dominique Lind wrote:
> 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\.

Well, I see what happens.

Using %p/xxx, the URL of the style sheet should be
"file:///C:/CTC_Benchbook/stylesheets/fo/mystyle.xsl"
and not
"file:/C:/CTC_Benchbook/stylesheets/fo/mystyle.xsl"

We'll try to fix this bug (in fact a workaround for a
java.io.File.toURI() problem) in next release.

---
PS: "file:///C:\CTC_Benchbook/stylesheets/fo/mystyle.xsl" may work but
is nevertheless not correct. Once the bug will be fixed, we still
recommend to use %p/xxx and not file:///%P/xxx.

Reply via email to