Hi,
So the base.dir param needs to include the specific article directory such 
Android or Eclipse output directory, in parallel with the input directory.  
Somehow the input directory name (Android, Eclipse) must be specified to Ant 
for the processing to work, so couldn't the Ant script also use that name in 
the base.dir param?

I'm not a regular Ant user, so perhaps someone else could provide more help.

Bob Stayton
Sagehill Enterprises
b...@sagehill.net


  ----- Original Message ----- 
  From: Lars Vogel 
  To: Bob Stayton 
  Cc: Lwam Berhane ; docbook-apps@lists.oasis-open.org 
  Sent: Thursday, January 12, 2012 11:22 PM
  Subject: Re: [docbook-apps] Incorrect output dir if I use chunk.xsl with 
Apache Ant


  Hi Bob,


  my problem was not solved. This tip from Jirka puts everything in one output 
directory.


  My ${article.dir} has subfolders with the individual tutorials. the 
docbook.xsl process them and places them into the individual folders, e.g.


  ${outdirtemp.dir}/Android/article.xml -> ${article.dir}/Android/article.html
  ${outdirtemp.dir}/Eclipse/article.xml -> ${article.dir}/Eclipse/article.html


  Would it be possible to change the chunks.xls to support the destdir or is 
there another way to archive this?


  Best regards, Lars




  2012/1/12 Bob Stayton <b...@sagehill.net>

    Same solution:

    http://lists.oasis-open.org/archives/docbook-apps/201201/msg00031.html

    Bob Stayton
    Sagehill Enterprises
    b...@sagehill.net


    ----- Original Message ----- From: "Lwam Berhane" <berh...@punkt.de>
    To: <docbook-apps@lists.oasis-open.org>
    Sent: Thursday, January 12, 2012 5:25 AM
    Subject: Re: [docbook-apps] Incorrect output dir if I use chunk.xsl with 
Apache Ant




      Hi!

      I have the same problem but with Phing!
      Does anyboday know what is happening?

      Best Regards

      Am 09.01.2012 09:07, schrieb Lars Vogel:

        Hello,

        I wanted to create chunk output for my tutorials. Unfortunately the
        destination directory seems to get ignore if I use chunks.xsl instead
        of docbook.xsl.

        I use Apache Ant:

        <target name="build-html" depends="xinclude" description="Generates HTML
        files from DocBook XML">
        <xslt style="${myhtml.stylesheet}" extension=".html"
        basedir="${outputtmp.dir}" destdir="${article.dir}">
        <include name="**/*article.xml" />
        <classpath refid="saxon.class.path" />
        </xslt>
        </target>

        If I replace ${myhtml.stylesheet} (which points to a customizing layer
        of docbook.xsl) with a reference to chunks.xsl, the output is written to
        the currrent directory and not the defined destdir.

        This is a strange issue for me as I can see no reason why this should
        happen. Did anyone ran into this already and know how to solve it?

        Best regards, Lars

        --
        Lars
        http://www.vogella.de - Eclipse, Android and Java Tutorials
        http://www.twitter.com/vogella - Lars on Twitter



      -- 
      Gruß Lwam Berhane



      punkt.de GmbH               TYPO3-Internet-Dienstleistungen-Beratung
      Kaiserallee 13a             Tel.: 0721 9109-0  Fax: -100
      76133 Karlsruhe             i...@punkt.de    http://punkt.de/
      AG Mannheim 108285          Gf: Jürgen Egeling

      ---------------------------------------------------------------------
      To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
      For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org






    ---------------------------------------------------------------------
    To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
    For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org







  -- 
  Lars
  http://www.vogella.de - Eclipse, Android and Java Tutorials
  http://www.twitter.com/vogella - Lars on Twitter

Reply via email to