[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Urgent JSP, XML, XSL

Subject: Urgent JSP, XML, XSL
From: "Priya Pinto" <itfresher@xxxxxxxxxxxxxx>
Date: 18 Sep 2000 11:18:01 -0000
jsp xml xsl
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.