@echo off cd /d %~dp0 set _dir_=%CD% set _base_=%_dir_% set java_home=%_base_%/jdk-24.0.2 set ant_home=%_base_%/apache-ant-1.10.15 set classpath=%java_home%/lib;%ant_home%/lib;%_base_%/lib/saxon-he-12.9.jar;%_base_%/lib/httpcore5-5.3.5.jar;%_base_%/lib/xmlresolver-6.0.19.jar; set path=%java_home%/bin;%ant_home%/bin; set style_dir=%_base_%/XSLT_STYLE_SHEET/ahpdfxmlToFo cd %style_dir% rem antの引数の説明です。 rem args.xsl:XSLTスタイルシート rem args.input:入力AHPDFXMLファイル名(catalogファイル名を指定してください) rem args.output:出力ファイル名 rem (注意)AHPDFXMLからfoに変換します。その後AHFormatterを使いPDFに変換します。別途AHFormatterが必要です。 call ant -Dargs.xsl=%style_dir%/xsl/ahpdfxml2fo_shell.xsl -Dargs.input=%_base_%/pdfxml/pdf2tmp_catalog.xml -Dargs.output=%_base_%/pdfxml/sample.pdf -Dahf.dir="C:\Program Files\Antenna House\FormatterV74" cd %_base_%