← Prev in month ← Prev in thread
Next in thread → Next in month →

using XSLT to transform to html....

From
Naveen My <>
To
Date
2003-07-15T15:46:16Z
ID
<>
Thread
using XSLT to transform to html....
I am building an XML from resultset and then rendering it to XSL to show as html on browser...

But,when I see on browser....I see xsl tree with all the xml values...
 
I am also attaching my xml and xsl

Please advice..


thanks

naveen

my piece of code...

PrintWriter out= res.getWriter();

XMLOutputter xout = new XMLOutputter(" ", true);
FileWriter writer = new FileWriter("D://Tomcat 4.1/webapps/careercenter/xml/res.xml");
xout.output(doc,writer);
writer.close();


SAXBuilder builder = new SAXBuilder();
Document mydoc = builder.build("D://Tomcat 4.1/webapps/careercenter/xsl/res.xml");

s.close();
conn.close();

Document docResults=null;
try
{
StreamSource stmsrc=new StreamSource("D://Tomcat 4.1/webapps/careercenter/xsl/viewresume.xsl");
TransformerFactory tFact=TransformerFactory.newInstance();
Transformer transformer = tFact.newTransformer(stmsrc);
JDOMResult jdRes=new JDOMResult();
JDOMSource jdSrc=new JDOMSource(mydoc);

transformer.transform(jdSrc,jdRes);
docResults=jdRes.getDocument();

xout.setTextNormalize(true);
xout.output(docResults,out);
}


Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
← Prev in month ← Prev in thread
Next in thread → Next in month →