[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: creating XML in a servlet

Subject: Re: creating XML in a servlet
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Mon, 8 Apr 2002 10:03:47 +0100
html servlet
Hi Jamal,

> Thanks a lot for the much needed detailed response!! I will
> definitely look into Cocoon. If I may ask one more question - as I
> am new to XSL so this is a very basic question: in order for me to
> accomplish what I want to accomplish, servlet needs to be able to
> interact with the XSL and get the output of XSL back and build XML
> in memory. Is this possible? I mean is there API defined through
> which Java can interact with the XSL back and forth.

Yes. The API that you use depends on the processor that you use to a
certain extent, but in general the Java XSLT processors support
TrAX (Transformation API for XML), which you can learn about at
http://xml.apache.org/xalan-j/trax.html and more generally JAXP (Java
API for XML Processing), which includes TrAX (see
http://jcp.org/aboutJava/communityprocess/review/jsr063/index.html).

Which processor are you using? Both Xalan and Saxon come with sample
servlets that you could build on. See
http://xml.apache.org/xalan-j/samples.html#servlet and
http://saxon.sourceforge.net/saxon6.5.1/samples.html#servlet.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.