[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

error xsl/java

Subject: error xsl/java
From: "Brais" <brais_gz@xxxxxxxx>
Date: Mon, 2 Jul 2001 16:16:01 +0200
malformedurlexception unknown protocol c
    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
  • error xsl/java
    • Brais - Mon, 2 Jul 2001 10:23:19 -0400 (EDT) <=
      • Michael Kay - Mon, 2 Jul 2001 10:50:16 -0400 (EDT)
        • Brais - Mon, 2 Jul 2001 11:32:12 -0400 (EDT)
          • Michael Kay - Mon, 2 Jul 2001 12:16:28 -0400 (EDT)
          • Brais - Mon, 2 Jul 2001 12:43:01 -0400 (EDT)

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.