[Mono-bugs] [Bug 495918] New: It would be useful to be able to pre-compile C# "scripts" embedded in XSL

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Apr 17 08:30:15 EDT 2009


           Summary: It would be useful to be able to pre-compile C#
                    "scripts" embedded in XSL
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: P5 - None
         Component: Sys.XML
        AssignedTo: atsushi at ximian.com
        ReportedBy: tlillqvist at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

I don't know if it is considered good style or not to have embedded C#
"scripts" in .xsl files, but it happens.

(I am more or less an XSL newbie myself, I just have to work with a huge
steaming pile of XSL written by third parties, and based on this experience I
have no wish to ever become anything more than an XSL newbie...)

Now, as currently implemented in Mono, compiling these snippets requires
running Mono's compiler as a subprocess. That is a bit suboptimal, isn't it?
But anyway, that is not as such what I propose changing in this patch.

What I suggest is making it possible to precompile such C# snippets. At least
in the case I am looking at, the C# "scripts" in the .xsl files are 100% static
for each release of the software in question. So one just needs to extract
(somehow... personally I used mono --trace...) the source file that is compiled
at run-time, pre-compile it into an assembly, and make sure it is available
then when running the program that uses the XSL. The patch should make it clear
what I mean.

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list