transformer.transformの使い方

XMLファイルをXSLTで変換して出力するときに使用
http://www.hellohiro.com/xslt.htm
http://edocs.beasys.co.jp/e-docs/wls/docs81/xml/xml_apps.html
http://www.techscore.com/tech/Java/DOM/8.html
注意: スタイルシートの出力エンコードを設定する
http://www.kit.hi-ho.ne.jp/~ginga/xalan-j/usagepatterns.html
javax.xml.transform クラス OutputKeys
http://java.sun.com/j2se/1.4/ja/docs/ja/api/javax/xml/transform/OutputKeys.html
transformer.setOutputPropertyのセット例
http://amateras.sourceforge.jp/cgi-bin/fswiki/wiki.cgi/free?page=XML
http://java.developpez.com/faq/java/?page=langage_xml
xml宣言の取り除き方
transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, “yes”);
とすると、XML宣言をはずした出力となる
(noでないので注意)


その他

タイトルとURLをコピーしました