Does anyone know of a way to load an xsl stylesheet from a jar file
rather than a path off the basedir?

I would like to repackage the javancss stuff to include the stylesheets
in the javancss.jar then load the stylesheet from the jar in ant. This
would ease the issues of having to keep track of both the stylesheets
and the jars separately.

Any ideas?

Thanks,
Mike.

sample code
===========
    <path id="javancss.cp">
      <pathelement location="${dev.lib.dir}/javancss-xslt.jar"/>
    </path>         
    
    <taskdef name="javancss" classname="javancss.JavancssAntTask"
classpathref="javancss.cp"/>

    <javancss 
      srcdir          = "${dev.src.dir}"
      packageMetrics  = "true"      
      classMetrics    = "false"     
      functionMetrics = "falase"    
      abortOnFail     = "false"     
      generateReport  = "true"
      outputfile      = "${build.lib.dir}/exception-javancss.xml"  
      format          = "xml"
      includes        = "**/*.java"
    />

    <xslt 
      in="${build.lib.dir}/exception-javancss.xml" 
      out="${build.lib.dir}/exception-javancss.html" 
      style="javancss2html.xsl" 
      classpathref="javancss.cp"
    />  

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

Reply via email to