On Friday, October 11, 2002, at 02:09 AM, Sylvain Wallez wrote:
> Stefano Mazzocchi wrote: > >> People, >> >> Neal Gafter is about to start the process for a new JSR on Java >> Compiler API which would hopefully make it fir Tiger (aka Java 1.5). >> He asked me if there are people interested in helping out with the >> details of bootstrapping this from Apache and since we (and Tomcat) >> are the one who need this the most (for XSP and sitemap compilation), >> I thought about asking here. >> >> The idea is to allow us to compile stuff without having to use the >> filesystem to retrieve both the source file and the classes on which >> the code to be compiled depend upon. >> >> So, if you are a committer and want to join, just raise your hand and >> we'll see what happens. > > > What would be very cool is to be able to specify line numbers of the > source file that generated the Java code (like #line in C). This would > allow for source-level XSP debuggers ! I've implemented this feature long time ago for the compiled sitemap, in the sitemap.xsl stylesheet. The generated sitemap would have lines like: // file: src/webapp/sitemap.xmap // line: 123 This was possible using some extension functions provided by Saxon for example. For Xalan I contributed a patch, but support for that seems to be broken. It may have changed with the latest releases, I don't know. I use this feature in my XSLT-process for Emacs, the visual XSLT debugger makes use of it to step through the XML input document and the XSLT stylesheet. Pretty powerful stuff, check out the screenshots at: http://xslt-process.sourceforge.net/screenshots.php Regards, -- Ovidiu Predescu <[EMAIL PROTECTED]> http://webweavertech.com/ovidiu/weblog/ (Weblog) http://www.geocities.com/SiliconValley/Monitor/7464/ (Apache, GNU, Emacs ...) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]