2011-03-15から1日間の記事一覧

Xalanのエラーメッセージが不親切すぎてストレス半端ないのでプロセッサをSaxonに切り替える

System.setProperty("javax.xml.transform.TransformerFactory", "net.sf.saxon.TransformerFactoryImpl"); これだけで、おk。他のコードは共通でいい。

import/includeを使おうとするとMalformedURLExceptionが出る件

StreamSource xsl = new StreamSource("hoge.xsl"); これだとエラーになって、 StreamSource xsl = new StreamSource(new File("hoge.xsl")); だと、ちゃんとパスが解決できる。……