> Ben, as an alternative approach which does not depend on introducing
> side-effects into xslt processing, perhaps you could instead write a
> stylesheet which transforms your input document into a scripting
> language, then execute that scripting language? Perhaps jelly (an
> xml-based scripting language being developed in the apache commons
> project) would be an appropriate scripting language. I don't know if
> jelly already has mkdir/copy/move tags, but I suspect it does, or would
> be happy to accept implementations of them.
>

I'd also suggest using Ant (jakarta.apache.org/ant) as the execution engine. 
Since Ant's build files are XML, it's very
easy to create them with Xalan. Plus Ant has the style task to run Xalan. A 
further bonus is that the entire process can
be run in one JVM, avoiding process switching. Example code follows.

<project default="">
 <target name="foils">
  <style
   style="build.xsl"
   in="mapframe.xml"
   out="build/build-swf.xml"
  >
  </style>
  <ant antfile="build/build-swf.xml"/>
 </target>
</project>


Reply via email to