ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rolf Katzenberger <>
Subject Re: templating build files with xml
Date Tue, 18 Dec 2001 15:46:47 GMT
Hello Knut,

On Mon, 17 Dec 2001 09:33:32 +0100, "Wannheden, Knut"
<> wrote:

>I would like to be able to dynamically create ant build files using some
>kind of template.
>First I thought XSLT would be the right way, but if I have a template where
>I only need to replace some small (tagged) parts, it's probably not

Why not? You can put specific matches for the tagged parts you want to
replace in the styleesheet and add a generic "copy everything" match
like this:

  <xsl:template match="@*|node()" priority="-1">
    <xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy>


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

View raw message