place xerces.jar file in your 
jdk/jre/lib/ext 
and restart tomcat
you can get it from http://xml.apache.org xerces - java
that's all. (I know)

here is sample codes
      okjsp.jsp 
<%@ page contentType="text/html;charset=euc-kr" %><%String [][] x = { {"1","a"}, 
{"2","b"}, {"3","c"}, {"4","d"}, {"5","e"}};%><?xml version="1.0" encoding="euc-kr" 
?><?xml-stylesheet type="text/xsl" href="okjsp.xsl" ?><phone><%for (int 
i=0;i<x.length;i++) { %>        <member>                <name><%=x[i][0] %></name>     
           <title><%=x[i][1] %></title>        </member><%} %></phone>
     


      okjsp.xsl 
<?xml version="1.0"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">        
<xsl:template match="/">        <html>        <body>        <table border="2" 
cellpadding="2">        <tr>                <td>name</td>                
<td>title</td>        </tr>        <xsl:for-each select="phone/member">        <tr>    
            <td><xsl:value-of select="name" /></td>                <td><xsl:value-of 
select="title" /></td>        </tr>        </xsl:for-each>        </table>        
</body>        </html>        </xsl:template></xsl:stylesheet> 

     
      from : http://my.dreamwiz.com/heogn/lecture/lec07/xml01.htm  

----- Original Message ----- 
From: "Gilson do N. D'Elrei" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 02, 2001 9:05 AM
Subject: How to use XML ?


> Everyone have a good tutorial about use of JSP/Servlet and XML. Please not
> sun.com, i have all. I need of practice samples about use of XML with
> JSP/Servlets.
> thanks in advance.
> 
> 

Reply via email to