hope the below helps.. u dont need a liason .

 

vasanth

 

<%@ page import="java.io.*" %>

<%@ page import="org.apache.xerces.parsers.DOMParser" %>

<%@ page import="com.lotus.xml.xml4j2dom.XML4JLiaison4dom" %>

<%@ page import="org.xml.sax.SAXException" %>

<%@ page import="org.apache.xalan.xslt.XSLTProcessor" %>

<%@ page import="org.apache.xalan.xslt.XSLTProcessorFactory" %>

<%@ page import="org.apache.xalan.xslt.XSLTInputSource" %>

<%@ page import="org.apache.xalan.xslt.XSLTResultTarget" %>

 

<%!

private String sXMLFile = "c:\\WebSphere\\AppServer\\hosts\\default_host\\jcAppServerWebApp\\web\\ur.xml";

private String sXSLTFile = "c:\\WebSphere\\AppServer\\hosts\\default_host\\jcAppServerWebApp\\web\\ur.xsl";

private String sOutFile = "c:\\WebSphere\\AppServer\\hosts\\default_host\\jcAppServerWebApp\\web\\ur.html";

%>

 

<%

try

{

XSLTInputSource inputSource = new XSLTInputSource(sXMLFile);

XSLTInputSource stylesheetSource = new XSLTInputSource(sXSLTFile);

XSLTResultTarget outputTarget = new XSLTResultTarget(out);

//XML4JLiaison4dom liason = new XML4JLiaison4dom();

XSLTProcessor processor = XSLTProcessorFactory.getProcessor();

processor.process( inputSource, stylesheetSource, outputTarget) ;

}

catch (Throwable ex)

{

out.println( "<BR><B>" + ex.toString() + "</B>");

}

%>

-----Original Message-----
From: Pradeep Tallogu [mailto:[EMAIL PROTECTED]
Sent: Monday, October 28, 2002 1:59 PM
To: [EMAIL PROTECTED]
Subject: parsing

hi all,

i have an xml and an xsl file. can someone tell me the simplest way to use these files and get a resultant html file. ive installed xalan-j and xerces-j on my computer through ant. and im working in unix environment. im kinda getting started.

Thanks.

Pradeep.



Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site

This e-mail, including attachments, is intended for the exclusive use of the person or entity to which it is addressed and may contain confidential or privileged information. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you think that you have received this e-mail in error, please advise the sender by reply e-mail of the error and then delete this e-mail immediately. Thank you. Aetna

Reply via email to