ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Reilly" <peter.kitt.rei...@gmail.com>
Subject Re: <xslt> Many Input xml for one html output.
Date Fri, 08 Dec 2006 09:14:36 GMT
On 12/8/06, Jan.Materne@rzf.fin-nrw.de <Jan.Materne@rzf.fin-nrw.de> wrote:
> 1.) Make one xml file with the whole content
>     <echoxml file="tmp.xml">
>         <root>
>     </echoxml>
>     <concat destfile="tmp.xml" append="true">
>         <fileset dir="xml" includes="*.xml"/>
>     </concat>
>     <echoxml file="tmp.xml">
>         </root>
>     </echoxml>
or use the  <header> and <footer> elements of <concat>
:
    <concat file="tmp.xml">
      <header>&lt;root></header>
      <fileset dir="." includes="*.xml"/>
      <footer>&lt;/root></footer>
    </concat>

> 2.) Process that single file.
>
>
> Jan
>
>
> >-----Urspr√ľngliche Nachricht-----
> >Von: Dominique Devienne [mailto:ddevienne@gmail.com]
> >Gesendet: Freitag, 8. Dezember 2006 00:13
> >An: Ant Users List
> >Betreff: Re: <xslt> Many Input xml for one html output.
> >
> >On 12/7/06, Chun Ji <CJi@pro-unlimited.com> wrote:
> >> I try to use the <xslt> to do a transformation. I have
> >several input XML files, and want to create only one output
> >HTML file. Does someone know how to do it? I am using ant
> >1.6.5 on linux.
> >
> >You cannot. You need to create a small XML document that lists
> >the file you want to process, and modify your XSL to process
> >each "file"
> >entry of this small document, after loading the file with the
> >document() XSL function.
> >
> >As far as Ant is concerned, there's always one input XML, one
> >XSL, and one output file. The XSL might load more XML files
> >using document(), and output more files using
> >result-document() in XSL 2.0 or a processor-specific extension
> >in XSL 1.0, but Ant doesn't know that.
> >
> >This is more of an XSL question than an Ant question ;-)  Good
> >luck, --DD
> >
> >---------------------------------------------------------------------
> >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
>
>

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


Mime
View raw message