Re: Re: Urgent JSP, XML, XSL

Subject: Re: Re: Urgent JSP, XML, XSL
From: "Priya Pinto" <itfresher@xxxxxxxxxxxxxx>
Date: 19 Sep 2000 07:11:10 -0000
I don't get a error message! All I get on the screen is the values in the tags. If I try to view the source I find the proper XML document and when saved as an XML document it opens with the respective xsl properly formatted.

Priya

------------- Original Message --------------
"Rohit Peyyeti" <rohit@xxxxxxxxxxxxxxxxx> wrote:
To:<xsl-list@xxxxxxxxxxxxxxxx>
From:"Rohit Peyyeti" <rohit@xxxxxxxxxxxxxxxxx>
Date:Tue, 19 Sep 2000 09:51:24 +0530
Subject: Re: Urgent JSP, XML, XSL

What error does it output in browser?

...Rohit

----- Original Message -----
From: Priya Pinto <itfresher@xxxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxx>; <XML-L@xxxxxxxxxxxxxxxxxx>;
<JSP-INTEREST@xxxxxxxxxxxx>
Sent: Monday, September 18, 2000 4:48 PM
Subject: Urgent 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
>



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

_________________________________________________
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