[xsl] error xsl/java

Subject: [xsl] error xsl/java
From: "Brais" <brais_gz@xxxxxxxx>
Date: Mon, 2 Jul 2001 16:16:01 +0200
    Hi,

For doing a transformation I use Saxon (Fop-0.18.1-DEV) from a Java
(jdk1.3.0_02) aplication.
The program code, from the example FileTransform.java from "XSLT 2nd editon.
Michael Kay", is correct.

When I execute     "java FileTransform discos.xml a-html.xsl saida.html", in
the directory containing discos.xml, a-html.xsl and saida.html, the next
error appeared:

"Error java.net.MalformedURLException: unknown protocol: c: unknown
protocol: c
    Exception in thread "main" javax.xml.transform.TransformerException:
    java.net.MalformedURLException: unknown protocol: c
                at com.icl.saxon.Builder.build(Builder.java:265)
                at com.icl.saxon.Controler.transform(Controler.java:799)
                at FileTransform.main(FileTransform.java:14)
------------
java.net.MalformedURLException: unknown protocol: c
            at java.net.URL.<init>(Unknown Source)
            at java.net.URL.<init>(Unknown Source)
            at com.icl.saxon.aelfred.XmlParser.pushURL(XmlParser.java:3526)

            and a lot more"

    The error seems simple, but I am not able to solve it

   Thanks

··········································
    FileTransform.java:

import javax.xml.transform.*;
import javax.xml.transform.stream.*;
import java.io.File;

public class FileTransform {

    public static void main(String[] args) throws Exception {
        File source = new File(args[0]);
        File style = new File(args[1]);
        File out = new File(args[2]);

        TransformerFactory factory = TransformerFactory.newInstance();
        Transformer t = factory.newTransformer(new StreamSource(style));
        t.transform(new StreamSource(source), new StreamResult(out));
    }
}
································


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread