Dear Wiki user, You have subscribed to a wiki page or wiki category on "Ant Wiki" for change notification.
The "CreateDocBookDocumentation" page has been changed by antoine. http://wiki.apache.org/ant/CreateDocBookDocumentation?action=diff&rev1=1&rev2=2 -------------------------------------------------- - Describe CreateDocBookDocumentation here. + = Create docbook XML based documentation with Ant = - Validate with jing + == Validate with jing == {{{ <java jar="lib/jing/jing.jar" fork="true" failonerror="true"> @@ -14, +14 @@ }}} I am using java here rather than the jing task . I found the idea to use the jvmargs by reading this bug report of jing-trang [[attachment:http://code.google.com/p/jing-trang/issues/detail?id=38|Make it easy to do XInclude processing before validation]] + + == Transform into HTML == + + == Transform into PDF == + + Jars needed : + + - for xslt + saxon9.jar xercesImpl.jar xml-apis.jar xml-resolver.jar + + - for fop + batik 1.0, fop 0.2.0.5, avalon 4.1.2-cvs-20020806 works for me + there are newer sets of jars, maybe from the batik project ? + + + + {{{ + <xslt style="${docbook.xsl.basedir}/fo/docbook.xsl" extension=".fo" basedir="${sample.docs.xml.dir}" includes="sample-user.xml" destdir="${sample.docs.fo.dir}"> + <classpath> + <fileset dir="lib/xslt" /> + </classpath> + <sysproperty key="org.apache.xerces.xni.parser.XMLParserConfiguration" value="org.apache.xerces.parsers.XIncludeParserConfiguration" /> + <xmlcatalog> + <entity publicId="attributes.entity" location="${sample.docs.xml.dir}/attributes.entity" /> + <entity publicId="objectclasses.entity" location="${sample.docs.xml.dir}/objectclasses.entity" /> + </xmlcatalog> + </xslt> + <taskdef name="fop" classname="org.apache.fop.tools.anttasks.Fop"> + <classpath> + <fileset dir="${project.lib}/fop"> + <include name="*.jar" /> + </fileset> + </classpath> + </taskdef> + <fop format="application/pdf" outdir="${sample.docs.pdf.dir}"> + <fileset dir="${sample.docs.fo.dir}"> + <include name="*.fo" /> + </fileset> + </fop> + }}} +
