You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Rajesh Bhadra <rs...@yahoo.com> on 2002/05/03 20:24:40 UTC
Process an XML file with multiple XSL files using style task
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Process an XML file with multiple XSL files using style task
Posted by Diane Holt <ho...@yahoo.com>.
--- Rajesh Bhadra <rs...@yahoo.com> wrote:
> How does one process a given XML file with multiple
> XSL files using <style> task?
There's an ER filed for this (7879), but it's unlikely it'd happen anytime
soon, since Ant1.5 is already in freeze mode for new features, but it can
be done using the Styler task -- see the External Tools and Tasks page:
http://jakarta.apache.org/ant/external.html
Diane
=====
(holtdl@yahoo.com)
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>