Subject: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.
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?
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 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.
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?
Subject: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.
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')"/>).