[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: website build. output directory problems.
Using ant. Using website (most recent) Structure: root xml files here /upload Problem. I'm working from 'root' (in this example) root> ant website used to build the html. My request to ant is to build into 'upload' directory <arg line="-o upload/op.html "/> My request to docbook stylesheets is <toc page="ps.xml" filename="index.html"> I.e. the first output file is in 'the current' directory (unspecified) Somehow all this is being mixed up. index.html has ../upload/str/strategic.html as the link So it seems to be based around the current working directory (root in my example) I don't want to splatter all the html files over the disk alongside the xml files. Any help appreciated please. tia DaveP layout file and ant build.xml file below Question - is <xsl:param name="base.dir" select="''"></xsl:param> relevant to this? 0. layout file <toc page="ps.xml" filename="index.html"> <tocentry page="strategic.xml" dir="str" filename="strategic.html" tocskip='0'> <tocentry page="strat1.xml" filename="strat1.html" tockskip='0'/> <tocentry page="strat2.xml" filename="strat2.html" tockskip='0'/> </tocentry> <tocentry page="operational.xml" dir="op" filename="operational.html" tocskip='0'> <tocentry page="op1.xml" filename="op1.html" tockskip='0'/> <tocentry page="op2.xml" filename="op2.html" tockskip='0'/> </tocentry> <tocentry page="otherinfo.xml" dir="other" filename="otherinfo.html" tocskip='0'> <tocentry page="other1.xml" filename='other1.html' tocskip="0"/> <!-- Now add your other 'info' xml pages in here. --> </tocentry> </toc> 1. Ant script in question <echo message="Website, second stage processing " /> <java classname="${xslt.processor.class}" fork="yes" dir="${in.dir}" failonerror="true"> <classpath refid="xslt.processor.classpath" /> <arg line="-o upload/op.html "/> <arg line="-x org.apache.xml.resolver.tools.ResolvingXMLReader"/> <arg line="-y org.apache.xml.resolver.tools.ResolvingXMLReader"/> <arg line="-r org.apache.xml.resolver.tools.CatalogResolver"/> <arg line="${in.dir}/${website.infile} ${website.stylesheet} ${param.args.post}" /> </java> </target> regards -- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]