[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] error xsl/java
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|