XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Chavdar StefanovSubject: Problem using custom external processor
Author: Chavdar Stefanov
Date: 31 Jan 2003 09:19 AM
Hi all,

I want to use Xalan as custom external processor and I got the following error message:
javax.xml.transform.TransformerException: 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?

Postnext
Rudolf P WeinmannSubject: 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?



Postnext
Minollo I.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?

Thanks,
Minollo

Postnext
Chavdar StefanovSubject: 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.

Postnext
Minollo I.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

Posttop
Chavdar StefanovSubject: 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

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.