Urgent JSP, XML, XSL

Subject: Urgent JSP, XML, XSL
From: "Priya Pinto" <itfresher@xxxxxxxxxxxxxx>
Date: 18 Sep 2000 11:18:01 -0000
Hi,

I've been trying a absolutely simple program in jsp and it is just refusing to work out!

I've got a jsp file which generates XML code and calls an xsl file to display the output and it is just not working!!

Here's the JSP file
<?xml version="1.0"?>
<?xml:stylesheet type="text/xsl" href="Test.xsl"?>
<%@ page language="java" import="java.io.*" session="true"%>
<%
	String title1="Yahoo";
	String description1="Search engine extraordinaire";
	String urls1="http://www.yahoo.com";;
	String category1="General";
	String id1="b001";
	String ss="Blackie";
%>
<bookmarks>
<user><%=ss%></user>
<id><%=id1%></id>
<title><%=title1%></title>
<description><%=description1%></description>
<urls><%=urls1%></urls>
<category><%=category1%></category>
</bookmarks>

Here's the XSL file

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl";>
<xsl:template match="/">

<html>
<body bgcolor="#eed5d2">
<center>

<xsl:for-each select="bookmarks">
<font size="5" color="#b03060">Welcome <xsl:value-of select="user"/>
</font>
<br/><br/>
<table border="0" cellpadding="2" cellspacing="0" width="50%" bgcolor="#b03060">
  <tr>
    <td width="100%" align="center"><font face="Times New Roman" size="5" color="#FFFFFF"><strong>Edit
    Bookmark</strong></font></td>
  </tr>
  <tr>
    <td width="100%"><div align="center"><center><table border="0" cellpadding="0"
    cellspacing="0" width="100%" bgcolor="#FFFFFF">
      <tr>
        <td width="29%"><br/>
        </td>
        <td width="71%"></td>
      </tr>
      <tr>
        <td width="29%">Title</td>
        <td width="71%">
<input type="text" name="title">
<xsl:attribute name="value">
<xsl:value-of select="title"/>
</xsl:attribute>
</input>
	</td>
      </tr>
      <tr>
        <td width="29%">Description</td>
        <td width="71%">
<input type="text" name="description">
<xsl:attribute name="value">
<xsl:value-of select="description"/>
</xsl:attribute>
</input>
	</td>
      </tr>
      <tr>
        <td width="29%">Url</td>
        <td width="71%">
<input type="text" name="urls">
<xsl:attribute name="value">
<xsl:value-of select="urls"/>
</xsl:attribute>
</input>
	</td>
      </tr>
      <tr>
        <td width="29%">Category</td>
        <td width="71%">
<input type="text" name="category">
<xsl:attribute name="value">
<xsl:value-of select="category"/>
</xsl:attribute>
</input>
	</td>
      </tr>
      <tr>
        <td width="29%"><br/>
        </td>
        <td width="71%"></td>
      </tr>
      <tr>
        <td width="100%" colspan="2" align="center"><input type="submit" value="Edit" name="Edit" /> <input
        type="reset" value="Reset" name="Reset" /></td>
      </tr>
    </table>
    </center></div></td>
  </tr>
</table>
</xsl:for-each>
</center>

</body>
</html>
</xsl:template>
</xsl:stylesheet>

Thanks
Priya


_________________________________________________
Get Your Free Email At, http://www.rediffmail.com

For fabulous shopping deals visit: http://www.rediff.co.in/shopping/index.html




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread