ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: <xslt> Many Input xml for one html output.
Date Fri, 08 Dec 2006 14:39:04 GMT
>> > 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>
>
>Eh guys, what about the <?xml> declarations??? AFAIK, you 
>can't have those in the middle of the file, can you? OK, I'm 
>just grumpy because I didn't think of it myself! ;-)


Mmmh - as long as you dont parse that the declaration and PIs dont
matter ;-)
So could use regexp-filterchains for extracting/deleting them?


>But seriously, I think Ant would be more useful if we allowed 
>custom SAX sources in <xslt>, to allow merging XML files like 
>in this use case, or allow processing HTML files in XML by 
>first normalizing it to XML using tag-soup, or allow 
>processing any file for which there's a parser that can output 
>SAX events. --DD


mmmh  .... SAX events as <resource>?


Jan

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


Mime
View raw message