cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Royal <pro...@managingpartners.com>
Subject Re: How do you build your XSLs?
Date Tue, 19 Jun 2001 13:59:59 GMT
At 05:13 PM 6/19/2001 +0400, you wrote:
>Problems with XML Spy begin when you are editing XSP pages - you have to
>write all that Java code as text and you have no syntax highlighting, no
>code insight and all other things that makes Java programming easier with
>IDEs.
>Are there any editor which support XSP/JSP like mixed syntax?

Not that I know of. We use XML Spy here for our XML/XSLT/XSP work. I've 
been following the trend that the logicsheets that are shipped with C2 use, 
which is to move most of the java code into a class module with static 
methods, and just put simple function calls in the logicsheet.  That way 
you can write your class module in your favorite java IDE with all the 
bells and whistles, and you have minimized the amount of java code in your 
logicsheet.

If you find that you do have an overwhelming need to put a decent amount of 
java code directly into the logicsheet, maybe JBuilder 5 has support for 
that. I know that they do ship a version of C1 with the program, and maybe 
it had support for XSP. As a last resort you could always use a JSP editor, 
and use the JSP syntax for editing, and then change the JSP code-marker 
tags to the XSP tags when you save the file. I think that'd be a PITA though.

As a last resort, if you want to invest a small amount of time into making 
a solution for yourself, would be to check out the "Multiple Major Modes" 
package for Emacs (http://mmm-mode.sourceforge.net/). I'm sure Emacs has 
good support for Java code and XML (syntax highlighting for sure, but I'm 
uncertain about code insight-type features), and using the MMM package you 
can have multiple modes active in a single buffer. It was original designed 
for use with the HTML::Mason perl package, which uses markers like <%perl> 
and </%perl> to delimit code sections. I'm sure you could modify it to 
check on <xsp:logic> and <xsp:expr>. With about 30m of work I was able to 
get it to work decently with XPathScript, a perl-and-XML language for the 
AxKit project.

Hope this helps :)
-pete



-- 
peter royal -> proyal@managingpartners.com
managing partners, inc. -> http://www.managingpartners.com


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message