PHP Classes

File: __list.xsl

Recommend this page to a friend!
  Classes of Marcelo Costa   OOE   __list.xsl   Download  
File: __list.xsl
Role: Auxiliary data
Content type: text/plain
Description: xsl template for basic grid
Class: OOE
Web development application framework
Author: By
Last change:
Date: 15 years ago
Size: 2,525 bytes
 

Contents

Class file image Download
<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#160;"> ] > <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" encoding="iso-8859-1" indent="yes"/> <xsl:decimal-format name="euro" decimal-separator="," grouping-separator="."/> <xsl:template match="/"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt-br"> <head> <meta http-equiv="content-type" content="text/xhtml; charset=ISO-8859-1" /> <link href="css/grid.css" rel="stylesheet" type="text/css"/> <link href="css/form.css" rel="stylesheet" type="text/css"/> <xsl:for-each select="root/title"> <title><xsl:value-of select="."/></title> </xsl:for-each> <script type="text/javascript" src="js/grid.js"> </script> </head> <body> <table align="center" cellspacing="0" cellpadding="0" border="0" bgcolor="#FFFFFF" width="900"> <tr> <td valign="top"><br/> <table> <tr> <xsl:for-each select="root/buton"> <td> <input type="button" onclick="return butonaction(this);" value=""> <xsl:attribute name="name"> <xsl:value-of select="burl"/> </xsl:attribute> <xsl:attribute name="class"> <xsl:value-of select="bname"/> </xsl:attribute> <xsl:value-of select="bname"/> </input> </td> </xsl:for-each> </tr> </table> <div class="grid" id="grid"> <table width="100%"> <thead> <tr> <xsl:for-each select="root/colum"> <xsl:for-each select="descendant::*"> <th><xsl:value-of select="."/></th> </xsl:for-each> </xsl:for-each> </tr> </thead> <tbody> <xsl:for-each select="root/data"> <tr> <xsl:attribute name="class"> <xsl:value-of select="parimpar"/> </xsl:attribute> <xsl:for-each select="values"> <xsl:for-each select="descendant::*"> <td><xsl:value-of select="."/></td> </xsl:for-each> </xsl:for-each> <xsl:for-each select="link"> <td align="center"><a> <xsl:attribute name="href"> <xsl:value-of select="Lurl"/> </xsl:attribute> <xsl:value-of select="Lname"/> </a> </td> </xsl:for-each> </tr> </xsl:for-each> </tbody> <tfoot> </tfoot> </table> </div> </td> </tr> </table> </body> </html> </xsl:template> </xsl:stylesheet>