Subject:Problem using custom external processor Author:Rudolf P Weinmann Date:31 Jan 2003 09:44 AM
Did you try org.apache.xalan.xslt.Process -V -IN file:///%1 -XSL %2 -OUT %3 -DIAG
Rudolf
On 1/31/03 9:19:09 AM, Chavdar Stefanov wrote:
>Hi all,
>
>I want to use Xalan as custom
>external processor and I got
>the following error message:
>javax.xml.transform.Transforme
>rException:
>java.net.MalformedURLException
>: unknown protocol: f
>I enter in the configuration
>dialog the following command
>line for external processing:
>java
>org.apache.xalan.xslt.Process
>-V -IN %1 -XSL %2 -OUT %3
>-DIAG
>I have installed Xalan 2.4.0
>and Xerces 2.1.0. If I try
>transformation from the
>console it works. For example:
>java
>org.apache.xalan.xslt.Process
>-V -IN some.xml -XSL
>file:///"F:\Dir1\Dir2\Dir with
>space\some.xsl" -OUT out.html
>-DIAG
>I suppose that the problem is
>that the URI generated by
>eXcelon is not correct.
>What is wrong and how to make
>eXcelon using external Xalan?
Subject:Re: Problem using custom external processor Author:Minollo I. Date:31 Jan 2003 09:44 AM
Before we dig into the specific problem you are having, why are you using
Xalan as an external processor rather than running the XalanJ package
bundled with Stylus Studio (4.5) that also allows you to do debugging and
backmapping?
If there is any reason why you don't want to use XalanJ version bundled
with Stylus, can you tell us what is the XalanJ command line you have
entered as custom external processor, and what are the URLs of the XML
source and XSLT script you are running?
Subject:Re: Problem using custom external processor Author:Chavdar Stefanov Date:04 Feb 2003 03:54 AM
I want to stick to some specific version of Xalan/Xerces and also to use some command line options like -diag, etc. I use this as additional feature of eXcelon, not as a replacement of bundled Xalan support.
Subject:Re: Problem using custom external processor Author:Minollo I. Date:31 Jan 2003 09:53 AM
>...
>I enter in the configuration dialog the following command line for
>external processing:
>java org.apache.xalan.xslt.Process -V -IN %1 -XSL %2 -OUT %3 -DIAG
Have you tried adding quotes around %1, %2 and %3?
java org.apache.xalan.xslt.Process -V -IN "%1" -XSL "%2" -OUT "%3" -DIAG
Subject:Re: Problem using custom external processor Author:Chavdar Stefanov Date:04 Feb 2003 04:26 AM
>>...
>>I enter in the configuration dialog the following command line for
>>external processing:
>>java org.apache.xalan.xslt.Process -V -IN %1 -XSL %2 -OUT %3 -DIAG
>Have you tried adding quotes around %1, %2 >and %3?
>java org.apache.xalan.xslt.Process -V -IN "%1" -XSL "%2" -OUT "%3" -DIAG
I tried this but still the same. I also tried this:
java org.apache.xalan.xslt.Process -V -IN "file:///%1" -XSL "file:///%2" -OUT "%3" -DIAG
and then I get different error message:
(Location of error unknown)XSLT Error (javax.xml.transform.TransformerConfigurationException): javax.xml.transform.TransformerException: java.io.FileNotFoundException: F:\DirName (The system cannot find the file specified)
Because the location of the xml and xsl file is in directory containing space in the name, the directory is truncated to the space and the rest after the space is interpreted as Xalan command line options and Xalan is reporting:
Invalid option: PartOfDirName\some.xml
Invalid option: PartOfDirName\some.xsl