cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ovidiu Predescu <ovi...@apache.org>
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 
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 <ovidiu@apache.org>
http://webweavertech.com/ovidiu/weblog/ (Weblog)
http://www.geocities.com/SiliconValley/Monitor/7464/ (Apache, GNU, 
Emacs ...)


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message