Re: [xsl] Cross-compiler between XSLT and java ?

Subject: Re: [xsl] Cross-compiler between XSLT and java ?
From: Rashmi Rubdi <dev_subscriptions@xxxxxxxxx>
Date: Sun, 4 Feb 2007 20:38:22 -0800 (PST)
It depends on what you are trying to accomplish. 

You can use JAXB if you
are simply trying to map XML documents to Java objects and vice versa, JAXB
allows you to work with XML without having to know XML programming techniques.
There's a free tutorial on Overview of XML (WJO-1115) [Module 3 XML
Processing] that goes over the details of JAXB nicely here: 

If you are trying to transform
and XML file with XSLT and display the results inside a JSP file then you can
use JSP Tag Libraries XML tags. 
After you successfully install JSTL 1.1
(jstl.jar, standard.jar, Servlet 2.4 web.xml and xalan.jar) you can import the
XML file and the XSLT file with 
the <c:import tag and then  use the
<x:transform tag inside a JSP to  perform the transformation. 

There are many
other tools that work with Java and XML/XSLT but it's hard to pinpoint the
right tool without knowing what's the code is trying to accomplish.

----- Original Message ----
From: Kamal Bhatt <kbhatt@xxxxxxxxx>
Sent: Sunday, February 4, 2007 6:27:29 PM
Subject: Re: [xsl] Cross-compiler between XSLT and java ?

Jusevicius wrote:
> Java's XSLT transformer does that by default -- it
compiles XSLT into
> Java byte-code, called translet. I don't know how to use
> separately, though.
> AFAIK Micheal Kay from Saxonica and at least
several other projects
> are working on that as well.
Never used it, but...
> Martynas
> On 2/4/07, Ben
Stover <bxstover@xxxxxxxxxxx> wrote:
>> A friend asked me if there is
something like a cross-compiler which 
>> converts a XSLT stylesheet into a
java (source) programm.
>> His boss forces him to write java programs to
process XML documents.
>> Of cause - with XSLT this is much more comfortable.
So the best way 
>> for him would be to
>> write internally XSLT stylesheet
which performs the task and convert 
>> them
>> officially into a java
>> Is there a way to do this ?
>> No XSLT processor like Saxon
should be necessary to run the java 
>> program later.
>> Ben
XSL-List info and archive:
> To
unsubscribe, go to:
> or e-mail:
> --~--


XSL-List info and archive:
unsubscribe, go to:
or e-mail:
We won't tell. Get more on shows you hate to love 
(and love to hate):
Yahoo! TV's Guilty Pleasures list.

Current Thread