ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin de Dardel <benjamin.dedar...@gmail.com>
Subject xslt task programmaticaly
Date Sun, 12 Dec 2010 19:34:20 GMT
Hi all,

I use xslt task programmaticaly, and I would like to add parameters, like :
<param name="html.stylesheet" expression="style.css" />.

Do you know how I can add it ?

For example :

    /<xslt style="${html.xsl}" extension=".xml" basedir="src"
    destdir="out"> /
    / <classpath refid="xalan.classpath" /> /
    / <include name="**/${file.input}" /> /
    / <param name="html.stylesheet" expression="style.css" /> /
    / <param name="section.autolabel" expression="1" /> /
    /</xslt>/


    /XSLTProcess xslt = new XSLTProcess();/
    /xslt.setProject(getProject());/
    /xslt.setTaskName(this.getTaskName());/
    /xslt.setIn(jdomFile);/
    /xslt.setStyle(stylesheet.getAbsolutePath());/
    xslt. ???

Regards,
Benjamin de Dardel

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message