]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/xsl/FlatFielder2HTML.xsl
Flattened searching: generalized data retrieval via public service
[working/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         </head>
13         <body>
14             <table>
15                 <tbody>
16                     <xsl:apply-templates select="row[@ordinal='1']"/>
17                     <xsl:apply-templates select="row[not(@ordinal='1')]"/>
18                 </tbody>
19             </table>
20         </body>
21     </html>
22   </xsl:template>
23
24   <xsl:template match="row[@ordinal='1']">
25     <tr>
26         <xsl:for-each select="column"><th><xsl:value-of select="@name"/></th></xsl:for-each>
27     <tr>
28     </tr>
29         <xsl:for-each select="column"><td><xsl:value-of select="."/></td></xsl:for-each>
30     </tr>
31   </xsl:template>
32
33    <xsl:template match="row">
34     <tr>
35         <xsl:for-each select="column"><td><xsl:value-of select="."/></td></xsl:for-each>
36     </tr>
37   </xsl:template>
38     
39 </xsl:stylesheet>