This might be useful to somebody...

You can customize an ncover report at run time with these additional
nant commands.  Just after creating the report, add these (or similar)
lines:
<property name="reporttitle" value = ="${companyname} -- ${projectname}
${reportname}"/>
<xmlpoke file="${outputdir}\Coverage.xsl"
xpath="/xsl:stylesheet/xsl:[EMAIL PROTECTED]'coverage']/html/head/title"
value="${reporttitle}>
        <namespaces>
                <namespace prefix="xsl"
uri="http://www.w3.org/1999/XSL/Transform"/>
        </namespaces>
</xmlpoke>
<xmlpoke file="${outputdir}\Coverage.xsl"
xpath="/xsl:stylesheet/xsl:[EMAIL PROTECTED]'header']/h1"
value="${reporttitle}>
        <namespaces>
                <namespace prefix="xsl"
uri="http://www.w3.org/1999/XSL/Transform"/>
        </namespaces>
</xmlpoke>

These particular examples replace the (1) the title on the browser
window and (2) the title on the report of the web page with the contents
of property "reporttitle".  This would be helpful so that you don't have
to have a separate xsl for each project.

Stephen Lewis
Envisioneering LLC - Medical Products
St. Louis, MO 63114
(314) 429-7367 x112
 



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to