]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xsl/FlatFielder2HTML.xsl
lp1739277 OrgSelect Class Callback Holdings Implementation
[Evergreen.git] / Open-ILS / xsl / FlatFielder2HTML.xsl
1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2   
3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5   version="1.0">
6   <xsl:output method="html" doctype-public="-//W3C/DTD HTML 4.01 Transitional//EN" doctype-system="http://www.w3.org/TR/html4/strict.dtd" />    
7
8   <xsl:template match="//FlatSearch">
9     <html>
10         <head>
11             <meta http-equiv="Content-Type" content="text/html" charset="utf-8"/>
12             <style type="text/css">
13                 /* This CSS controls whether data printed from an interface
14                 based on FlattenerGrid has visible table cell borders. */
15
16                 table { border-collapse: collapse; }
17                 td, th { border: 1px solid black; }
18             </style>
19         </head>
20         <body>
21             <table>
22                 <tbody>
23                     <xsl:apply-templates select="row[@ordinal='1']"/>
24                     <xsl:apply-templates select="row[not(@ordinal='1')]"/>
25                 </tbody>
26             </table>
27         </body>
28     </html>
29   </xsl:template>
30
31   <xsl:template match="row[@ordinal='1']">
32     <tr>
33         <xsl:for-each select="column"><th><xsl:value-of select="@name"/></th></xsl:for-each>
34     <tr>
35     </tr>
36         <xsl:for-each select="column"><td><xsl:value-of select="."/></td></xsl:for-each>
37     </tr>
38   </xsl:template>
39
40    <xsl:template match="row">
41     <tr>
42         <xsl:for-each select="column"><td><xsl:value-of select="."/></td></xsl:for-each>
43     </tr>
44   </xsl:template>
45     
46 </xsl:stylesheet>