I'd like to propose adding extension objects to the style task. More
information about extension objects can be found here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconXsltArgumentListForStylesheetParametersExtensionObjects.asp

The build file task would look like this:
<style style="style.xsl" in="in.xml" out="out.xml">
   <extensionobjects>
       <extensionobject namespaceuri="urn:CustomParser"
type="XsltExtensions.CustomParser" assembly="XsltExtensions.dll" />
   </extensionobjects>
</style>

I believe this should be part of core NAnt rather than NAntContrib, as
the style task already supports parameters via the internal use of an
XsltArgumentList. Extension objects are the other major feature of
argument lists, so incorporating them as well is a logical step.

The use of extension objects in place of script blocks also addresses
a known memory leak. See http://support.microsoft.com/kb/316775/ and
http://support.microsoft.com/kb/325689/#6 for details.

I've previously written code to to do this for the 0.84 code base and
would be glad to update it for use with 0.85. Please let me know what
you think.

Tim


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to