ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "SinDoc" <s...@khakbaz.com>
Subject RE: AW: [xslt] a pre-defined output for each XML file
Date Wed, 03 Aug 2005 09:15:56 GMT
Thank you for your help.

>----- ------- Original Message ------- -----
>From: user@ant.apache.org
>To: user@ant.apache.org, sina@khakbaz.com
>Sent: Wed, 3 Aug 2005 10:15:16
>
>Some ideas using external tasks (AntContrib,
>XmlTasks)
>- read the "page"s from layout.xml (<xmlproperty> -
>core task)
>- write them to a text file (<echo>)
>- read the file into a property (<loadfile>)
>- iterate over that file (<for>,
>separator="${line.separator}")
>  -- read the dir + filename from layout.xml
>(xmltask)
>  -- do the transformation (<xslt>)
>
>Jan
>
>>-----Urspr√ľngliche Nachricht-----
>>Von: SinDoc [mailto:sina@khakbaz.com] 
>>Gesendet: Mittwoch, 3. August 2005 09:53
>>An: user@ant.apache.org; user@ant.apache.org;
>user@ant.apache.org
>>Betreff: RE: AW: [xslt] a pre-defined output for
>each XML file
>>
>>Given the @destdir in <xslt>, HTML outputs are
>generated 
>>properly. In DocBook Website, the user works out a
>file, 
>>called 'layout.xml', in which, each XML source
>file is mapped 
>>to a particular HTML output, for instance:
>>
>><tocentry page="projects/urfm.xml" dir="urfm" 
>>	    filename="index.html"/>
>>
>>In this example, the XSLT engine is supposed to
>create a 
>>directory called "urfm", in which the index.html
>is the 
>>transformed file.
>>
>>I was wondering if I could generate a FileSet or
>something out 
>>of the 'layout.xml' file, so that each XML file
>will properly 
>>be written where it's meant to be. This is what
>the folks do 
>>by using make but not Ant.
>>
>>Regards,
>>Sina
>>
>>>----- ------- Original Message ------- -----
>>>From: user@ant.apache.org
>>>To: user@ant.apache.org
>>>Sent: Wed, 3 Aug 2005 08:26:17
>>>
>>>Whats wrong with <xslt>?
>>>
>>>Jan
>>>
>>>>-----Urspr√ľngliche Nachricht-----
>>>>Von: SinDoc [mailto:sina@khakbaz.com]
>>>>Gesendet: Mittwoch, 3. August 2005 00:59
>>>>An: user@ant.apache.org
>>>>Betreff: [xslt]
>>>>
>>>>I have a chunk of XML files, each of which is
>>>mapped to a
>>>>particular HTML output. Now, I'd like to know,
>how
>>>I could
>>>>process them with an XSLT stylesheet by using
>the
>>>Ant XSLT
>>>>task in order for source files to be written
>into
>>>their HTML
>>>>equivalents!?
>>>>
>>>>Note that, it's all about transforming  the
>>>DocBook Website[1]
>>>>source files. I need to use Ant to generate HTML
>>>outputs if
>>>>the XML/XSL sources have been updated.
>>>>
>>>>Any suggestion is appreciated.
>>>>
>>>>Regards,
>>>>SinDoc
>>>>
>>>>[1]
>>>http://docbook.sourceforge.net/projects/website/
>>>>
>>>>--
>>>>SinDoc
>>>>Khakbaz Foundation <sina@khakbaz.com>
>>>>MarkupWare <sindoc@markupware.com>
>>>>SilkPage <sindoc@silkpage.markupware.com>
>>>>
>>>>------------------------------------------------
>--
>>>-------------------
>>>>To unsubscribe, e-mail:
>>>user-unsubscribe@ant.apache.org For
>>>>additional commands, e-mail:
>>>user-help@ant.apache.org
>>>>
>>>>
>>>
>>>-------------------------------------------------
>--
>>>------------------
>>>To unsubscribe, e-mail:
>>>user-unsubscribe@ant.apache.org
>>>For additional commands, e-mail:
>>>user-help@ant.apache.org
>>
>>--
>>SinDoc
>>Khakbaz Foundation <sina@khakbaz.com>
>>MarkupWare <sindoc@markupware.com>
>>SilkPage <sindoc@silkpage.markupware.com>
>>
>>--------------------------------------------------
>-------------------
>>To unsubscribe, e-mail:
>user-unsubscribe@ant.apache.org For 
>>additional commands, e-mail:
>user-help@ant.apache.org
>>
>>
>
>---------------------------------------------------
>------------------
>To unsubscribe, e-mail:
>user-unsubscribe@ant.apache.org
>For additional commands, e-mail:
>user-help@ant.apache.org

--
SinDoc 
Khakbaz Foundation <sina@khakbaz.com>
MarkupWare <sindoc@markupware.com>
SilkPage <sindoc@silkpage.markupware.com>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message