Hope this helps.. It worked for me. But haven't tried through XSL..
Let me know if you find anything..

<?xml version="1.0" encoding="UTF-8"?>
<%@ page language="java" import="java.util.Date" %>
<root>
  <%! Date date = new Date(); %>
  <message>JSP with XML Content
  </message>
  <% date.setTime(System.currentTimeMillis()); %>
  <notice>The current date is:
    <date><%= date.toString() %>
    </date>
  </notice>
</root>


Enjoy,
-Suhas

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Joseph B. Ottinger
Sent: Thursday, February 10, 2000 12:18 PM
To: [EMAIL PROTECTED]
Subject: JSP generating XML, passed through XSL?


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Has anyone managed to have JSP generate XML, then having a stylesheet
applied on the server? I've been trying to find an example of this -
people have said it can be done, but finding out how hasn't been easy for
me for some reason.

- -----------------------------------------------------------
Joseph B. Ottinger               [EMAIL PROTECTED]
http://cupid.suninternet.com/~joeo      HOMES.COM Developer
PGP Key is : http://cupid.suninternet.com/~joeo/cherem_pgpk

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.1i

iQA/AwUBOKMdAQhcVZKknQwGEQKNTwCg0FGqhz9tthWDslwBeKdwaiDmxlYAoK+q
8QcATEZtU26K666weORkXeO9
=9BuB
-----END PGP SIGNATURE-----

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to