cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ovidiu Predescu <>
Subject Re: new JSR on Java Compiler API
Date Fri, 11 Oct 2002 19:00:39 GMT

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 

// 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:

Ovidiu Predescu <> (Weblog) (Apache, GNU, 
Emacs ...)

To unsubscribe, e-mail:
For additional commands, email:

View raw message