[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ant-user
Subject:    xslt task dependencies on secondary files
From:       "Lenz, Evan" <lenze () seattleu ! edu>
Date:       2003-04-30 0:57:47
[Download RAW message or body]

This has been brought up in the past, but it doesn't appear that it has been
addressed yet. Basically, I want what Eric van der Vlist asked for almost
three years ago: 

http://marc.theaimsgroup.com/?l=ant-user&m=96952360015231&w=2

"The only way I could think of would be to add a new parameter to the
style task which would give a list of files involved in the
transformation."

In order to get around this lack, I am having to resort to terrible hacks
that increase my build time to an unacceptable length. Some workarounds have
been suggested:
http://marc.theaimsgroup.com/?l=ant-user&m=96952450917295&w=2
http://www.xml.com/pub/a/2002/12/11/ant-xml.html

But these workarounds do not work when an arbitrary (not statically known)
number of transformations need to take place as in the following example. I
have invented a "depends" element below to show an example of what I need to
be able to do:

<xslt basedir="${www.src}/html-content" destdir="${www.build}/simple-html"
style="${www.src}/stylesheets/simple.xsl" includes="**/*.html">
    <param name="navigation-file" expression="${www.src}/navigation.xml"/>
    <depends file="${www.src}/navigation.xml"/>
    <depends file="${www.src}/stylesheets/import/helper.xsl"/>
</xslt>

simple.xsl invokes document($navigation-file) and thus depends on that file,
in addition to the primary source file. Similarly, simple.xsl includes
<xsl:import href="import/helper.xsl"/> and thus also depends on that file. 

XSLT is an excellent tool for aggregation of XML content, but Ant currently
doesn't support such uses. Perhaps this feature actually has been
implemented? As an extension? Any further information on this would be
greatly appreciated. Otherwise, consider this a desperate feature request.

Thanks!
Evan

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic