Plands.com Logo  Business Internet Services 
Main Menu
Home
Planetary CRM
  Benefits
  Features
  Demo
E-Mail Services
  E-mail Hosting
  Newsletters
  Discussion Lists
Web Hosting
Server Co-location
and Administration
Web Applications
Technical Support
Contact Us
DXP Samples
 
DxpHome  ||   Samples  ||   Details  ||   Docs  ||   Trees  ||   xml-xsl  ||   Links

Source for IE 5 stylesheet

<?xml version="1.0"?> <!-- IE 5 uses old XSL namespace --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> <!-- required by IE 5 but not Mozilla --> <xsl:template match="*"> <xsl:apply-templates/> </xsl:template> <!-- required by IE 5 but not Mozilla --> <xsl:template match="text()"> <xsl:value-of select="."/> </xsl:template> <!-- root rule --> <xsl:template match="/"> <html> <head> <title>XSL Transform Test</title> </head> <body bgcolor="#FFFFFF" Text="#000000"> <xsl:apply-templates/> </body> </html> </xsl:template> <xsl:template match="doc"> <div align="center"> <h3>XSL Transformation on a Recordset</h3> <xsl:apply-templates/> <!-- apply templates to child nodes (tags enclosed by doc) --> </div> </xsl:template> <!-- how to process the children of a recordset tag --> <xsl:template match="recordset"> <table border="0" bgcolor="#3399FF"> <xsl:for-each select="labels"> <tr> <xsl:for-each select="label"> <th bgcolor="#CCCCFF"> <xsl:value-of select="."/> </th> </xsl:for-each> </tr> </xsl:for-each> <xsl:for-each select="row"> <tr> <xsl:for-each select="*"> <!-- for each elem in row --> <td bgcolor="#FFFFFF"> <xsl:value-of select="."/> <!-- select content of each elem --> </td> </xsl:for-each> </tr> </xsl:for-each> </table> </xsl:template> <!-- how to process an info tag --> <xsl:template match="info"> <table width="450"> <tr><td align="left"><xsl:apply-templates/></td></tr> </table> </xsl:template> <!-- How to process each item in the info tag --> <xsl:template match="item"> <p><i><xsl:apply-templates/></i></p> </xsl:template> </xsl:stylesheet>