OK, I'll post the code in the next few days, as soon as I have a chance to make sure it works against the 0.85 code base. And, yes, extension objects will have to have a default parameterless constructor for now.
Regards, Tim On Mon, 22 Nov 2004 12:11:27 +0900, Ian MacLean <[EMAIL PROTECTED]> wrote: > Tim Noll wrote: > > > > >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. > > > > > > > Sounds good Tim. I assume that the custom extension classes must have a > null paramater constructor for your code to be able to instantiate them > and pass them to XslStylesheet. I wrote somthing similar as part of > another project. Please post the code and someone one will take a looks > at it with a view to inclusion. > > Ian > > >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 > > > > > > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
