ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jo Support <>
Subject ant, xsl and variables
Date Fri, 17 Dec 2010 12:53:45 GMT
Hello people,

how do I pass a variable to a stylesheet using xslt task?

I have this ant script:

                <property name="floorType" value="wood"/>

		<xslt basedir="${workDir}" extension=".xml" destdir="out/"
			<include name="**/*.xml"/>

and this stylesheet:

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

	<xsl:template match="floor[../tapestry='red']">

but the process writes in the output file exactly


instead of the value of the property.

Where am I doing wrong?

Thanks a lot


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

View raw message