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
Jeff MitchellSubject: Prob using Xalan-J
Author: Jeff Mitchell
Date: 29 Jul 2003 10:16 AM
When using the "Xalan-J" processor (selected on the scenario dialog) I get the following:

java.net.MalformedURLException: unknown protocol: f

I have seen a previous post where the exact same problem was happening, but with the custom processor. When I use Xalan via the custom processor it works fine, but of course I don't get many of the extra features of the tool.

This problem must be down to the URLs provided in the scenario properties dialog (the files are on my F: drive) but it is frustrating since the exact URL is created by the tool when I browse for my source XML file.

Why is this happening?

Postnext
Minollo I.Subject: Re: Prob using Xalan-J
Author: Minollo I.
Date: 29 Jul 2003 10:28 AM
We can't reproduce the problem you are describing.
What Stylus Studio version/build are you running (Help|About)?

What are the exact URLs of the XSLT and XML documents your are using? Is
any XML document accessed through the document("...") function in the
stylesheet? If yes, what' the URL used in the document() function?

Thanks,
Minollo

Postnext
Jeff MitchellSubject: Re: Prob using Xalan-J
Author: Jeff Mitchell
Date: 29 Jul 2003 01:22 PM
I think that this is not to do with the URLs specified as input and output. I tried moving the files to another drive, and I still got the same error with the 'f'.

The URL of the stylesheet is

file://F:\cmi\london\config\xsl\blbgTf\blbgTfTradeConfirmationToCmf.xsl

and the URLs of the input and output XMLs are, respectively,

file://F:\saurza-sbox\jbRepositories\blbgTf\working\blbgTfSource\sampleBespokeBlbgTradeConf.xml

and

file://F:\saurza-sbox\jbRepositories\blbgTf\working\blbgTfSource\sampleCmfTrade.xml

The stylesheet does import another stylesheet () and does also include an XML document ().

As you can see the URLs are relative, so this problem may be caused by the way the different processors resolve relative URLs.

Again, I must stress, when I use an external processor (java org.apache.xalan.xslt.Process -IN %1 -XSL %2 -OUT %3) it works fine, when I select Xalan-J I get the error. The version of Xalan I am using is 2.5.0, which shouldn't be vastly different than the Xalan 2.4.D1 that you bundle with the tool.

The version of Stylus Studio I am using is 4.6 build 103s.

Thanks,

Postnext
Minollo I.Subject: Re: Prob using Xalan-J
Author: Minollo I.
Date: 29 Jul 2003 08:26 PM

>...
>The version of Stylus Studio I am using is 4.6 build 103s.

Can you try updating the Stylus version to 4.6 BL103v? 103v is available at
www.stylusstudio.com/updates

The scenario you are describing is consistent with our tests, and we don't
see the problem you are seeing. One last bit of information: can you check
in the Stylus About box what JVM version Stylus is using?

Thanks,
Minollo

Postnext
Jeff MitchellSubject: Re: Prob using Xalan-J
Author: Jeff Mitchell
Date: 30 Jul 2003 06:09 AM
The JVM is

1.3.1_02-b02 Classic VM Sun Microsystems Inc. debug mode port:8000

I specified this JVM deliberately since this is the Java environment used in our live system. However, I have specified the same JVM for internal and external processing, and as I say this problem does not occur when I invoke Xalan via the external command.

I also use custom Java code invoked from the stlylesheet. Are there any known problems with that which could cause this?

I will try the newer version and see how I get on.

Many Thanks.

Posttop
Jeff MitchellSubject: Re: Prob using Xalan-J
Author: Jeff Mitchell
Date: 29 Jul 2003 01:29 PM
I included some XML snippets in my last post which haven't printed. I will try again:

The stylesheet does import another stylesheet (<xsl:import href="../cmf/cmfHdr.xsl"/>) and does also include an XML document (<xsl:variable name="blbgTfSecurityIdentifierMappingTree" select="document('./../../xml/blbgTf/blbgTfSecurityIdentifierMapping.xml')"/>).

 
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.