-
XML question
How do we get the xml transformed into wml using xsl on the server side using
java.i.e. servlets or jsp.as on client side it is not possible to convert
from an xml to xsl as the browser doesnt support it.
Please clarify
-
Re: XML question
Use the XSLProcessor class.
In your doGet or doPut or service method put code like this ...
XSLProcessor processor = new XSLProcessor();
XSLTInputSource xmlIS = new XSLTInputSource(xml);
XSLTInputSource xslIS = new XSLTInputSource(xsl);
StringWriter wml = new StringWriter();
XSLTResultTarget target = new XSLTResultTarget(wml);
processor.process(xmlIS, xslIS, target);
res.getWriter().write(wml.toString);
Mark
"Pravin" <mromee123@rediffmail.com> wrote:
>
>How do we get the xml transformed into wml using xsl on the server side
using
>java.i.e. servlets or jsp.as on client side it is not possible to convert
>from an xml to xsl as the browser doesnt support it.
>Please clarify
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks