Thanks, Dominique and Robert. I've set force="true" but am going to check out Dominique's suggestions as a learning exercise.

Marijan (Mario) Madunic

Dominique Devienne wrote:
On Thu, Oct 16, 2008 at 1:19 PM, Robert Koberg <[EMAIL PROTECTED]> wrote:
Ant's XSL only checks the primary XSL file for changes (and the source XML -
not xi:includes or file entities). It does not parse that XSL to find
xsl:import/includes to check if they have changed.

You could put the import/includes in the primary XSL or use force=true on
the xslt task.

Or you explicitly check on the included/imported style sheets via
<uptodate> or AntContrib's <outofdate> separately from <xslt> itself.
This forces you to put in the build knowledge about the XSL, which is
not great, but often an acceptable compromise.

Or you patch <xslt> to parse the XSL to discover it's includes/imports
(recursively in those too), to check on the timestamps of those as
well ;-) That's not too difficult, and since they must appear in the
"prolog" before the templates themselves, you can stop parsing fairly
early too. But that involves some programming ;-)  --DD

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to