If you previously used the Saxon XSLT Processor within
<junitreport><report> you would get an error as the XSLT stylesheets
provided with Ant do not work with Saxon, they in fact rely on Xalan2
specific extensions.

The attached patch adds Saxon compatible stylesheets and selects the
Saxon stylesheets if the Saxon processor is specified, e.g. the
following now works:

<junitreport todir="${junit.reports.dat}">

    <fileset dir="${junit.reports.dat}">
        <include name="TEST-*.xml"/>
    </fileset>

    <report format="frames" todir="${junit.reports.html}">
        <factory name="net.sf.saxon.TransformerFactoryImpl"/>
        <classpath>
            <fileset dir="lib">
                <include name="Saxon*.jar"/>
            </fileset>
        </classpath>
    </report>

</junitreport>


Hope this can make it into the next Ant release? Let me know if you
need any changes...

Cheers Adam.

-- 
Adam Retter

skype: adam.retter
tweet: adamretter
http://www.adamretter.org.uk

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org

Reply via email to