ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajesh Bhadra <rsbha...@yahoo.com>
Subject Process an XML file with multiple XSL files using style task
Date Fri, 03 May 2002 18:24:40 GMT
Hi,

How does one process a given XML file with multiple
XSL files using <style> task? 

using a regex for the XSL files did not work and no
processing took place. 

Using multiple <style> task in the same target
processes all the tasks, but the transformation is
applied only for the first <style>. The following
tasks are evaluated and ignored. The processing has to
be done as part of a single <target>

A sample from my build file is given below -

    <property environment="env"/>
    <target name="buildxsl">
    	<style
            basedir="${project.home}"
            extension=".java"
            processor="trax"
			destdir="${env.TEMP}"
			classpath="${env.XALAN_HOME}/bin/xalan.jar"
		
style="${project.home}/XSL/AccessStrategyInputTransform.xsl"
			force="no"
			includes="**/XML/*.xml">
			<param name="baseDirectoryParameter"
expression="${SRC_HOME}"/>
    	</style>
    	<style
            basedir="${project.home}"
            extension=".java"
            processor="trax"
			destdir="${env.TEMP}"
			classpath="${env.XALAN_HOME}/bin/xalan.jar"
			style="${project.home}/XSL/HelperTransform.xsl"
			force="no"
			includes="**/XML/*.xml">

			<param name="baseDirectoryParameter"
expression="${SRC_HOME}"/>
    	</style>
    </target>

The Ant manual, RTFM and STFW has not helped.

Thanks in advance for the answers.

Rgds
- r


__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

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


Mime
View raw message