ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject AW: Invoking Ant XML fragments (Was:Re: Adding variable no of <param> elements to <xslt> task)
Date Mon, 11 Sep 2006 10:25:05 GMT
You also could do
- create a new buildfile
- invoce that buildfile 

not tested...

<presetdef name="append">
    <echoxml file="sub.xml" append="true"/>
    <project><xslt in="in.xml" out="out.xml" style="in2out.xsl">
<ac:for param="name" list="one,two,three">
        <append>  <param name="@{name}" value="${@{name}}"/>    </append>
<append>   </xslt></project>  </append>
<ant file="sub.xml"/>


>-----Urspr√ľngliche Nachricht-----
>Von: Holger Rauch [] 
>Gesendet: Montag, 11. September 2006 12:08
>Betreff: Invoking Ant XML fragments (Was:Re: Adding variable 
>no of <param> elements to <xslt> task)
>Hi Antoine,
>after googling a bit, I found this:
>=> It's possible to create an XML fragment describing the <xslt> task
>   (including the <param> elements for the stylesheet parameters)
>But that leads me to a totally different question: Is it 
>possible to "invoke" such a dynamically created fragment (i.e. 
>the <xslt> task is invoked in a way as if the fragment were 
>already contained in the Ant file instead of being dynamically 
>(Reason why I'm asking is that I want to avoid - if possible - 
>style breaks by introducing beanshell code).
>Thanks in advance for any info!
>Kind regards,
>	Holger
>On Sun, 10 Sep 2006, Antoine Levy-Lambert wrote:
>> [...]
>> I would extend the XSLTTask at your place.
>> [...]

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message