View Single Post
Old 03-15-2004, 12:23 PM   #9 (permalink)
azbuki
Inactive
 
Join Date: 03-15-04
Posts: 9
iTrader: 0 / 0%
Latest Blog:
None

azbuki is liked by many
Send a message via Yahoo to azbuki
my xsl file

This is my xsl file. Thank you for your time and effort in this matter.
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlnssl="http://www.w3.org/1999/XSL/Transform">
<xslutput method="html"/>

<xsl:template match="/">


<html>
<head>
<title>Administration</title>
<link rel="stylesheet" href="_style.css" type="text/css"/>
</head>
<body bgcolor="#FFFFFF">

<xsl:apply-templates/>

</body>
</html>
</xsl:template>
<xsl:template match="page">

<a name="top"></a>
<p class="submenu">
<table width="600" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
<tr>
<td width="400" valign="top">
<div align="left">
<font face="Verdana, Arial, Helvetica, sans-serif" size="4" color="#660000"><b> Administration</b></font><br/>
<font face="Verdana, Arial, Helvetica, sans-serif" size="3" color="#660000"><b><small>
<xsl:value-of select="type"/>
</small>
</b></font><br/>
</div>
</td>
<td width="200">
<p align="right" class="submenu">
<a href="_logout.jsp">logout</a><br/>
<a href="_admin_menu.jsp">main menu</a><br/>
</p>
</td>
</tr>
</table>
</p>


<xsl:for-each select="list">
<p>
<div class="topheading"><font color="#0000CC"><xsl:value-of select="section"/></font></div>
<span class="submenu"><i><xsl:value-of select="description"/></i></span>
</p>
<table width="600" border="0" cellspacing="2" cellpadding="2" bgcolor="#FFFFFF">
<tr bgcolor="#CC0000">
<td width="40" class="submenu" align="center"><b><font color="#FFFFFF">ID</font></b></td>
<td class="submenu" align="center"><b><font color="#FFFFFF">Name</font></b></td>
<td width="60" class="submenu" align="center"><font color="#FFFFFF"><b>Edit</b></font></td>
<td width="60" class="submenu" align="center"><font color="#FFFFFF"><b>Delete</b></font></td>
</tr>
<xsl:for-each select="record">
<tr bgcolor="#CCCCCC">
<td><p><xsl:value-of select="id"/></p></td>
<td><p><xsl:value-of select="name"/></p></td>
<td align="center">
<a class="mark_link">
<xsl:attribute name="href">
<xsl:value-of select="parameters"/>
</xsl:attribute>
E
</a>
</td>
<td align="center">
<a class="mark_link" onClick="return confirm( 'Click Yes to Delete' )">
<xsl:attribute name="href">
<xsl:value-of select="delete-params"/>
</xsl:attribute>
D
</a>
</td>
</tr>
</xsl:for-each>
</table>
<div class="submenu">
<a >
<xsl:attribute name="href">
<xsl:value-of select="new_parameters"/>
</xsl:attribute>
Create new record</a>
<p><a href="#top">Top</a></p></div>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
azbuki is offline   Reply With Quote