ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <>
Subject Re: [PATCH] valueFile for ReplaceFilter
Date Mon, 23 Apr 2001 09:34:35 GMT
At 06:02  23/4/01 +1000, Bojan Smojver wrote:
>Came across the need to replace tokens within files with the content of
>another file, so I've produced a little patch for Ant.
>The reasons for this patch are:
>- although there is multi line replacetoken/replacevalue functionality
>in ant, the actual tokens/values have to be specified within the build
>- same problem with the properties file: properties file contains also
>something other than the actual content that needs to replace the token

Just curious but why doesn't the following work for you if placed in your
style files. $mymenu.file could be a defined XSLT paramater (can the ant
style task pass in parameters??) or hardwired.

  <xsl:apply-templates select="document($mymenu.file)"/>



| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |

View raw message