1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6 <xsl:output method="html" doctype-public="-//W3C/DTD HTML 4.01 Transitional//EN" doctype-system="http://www.w3.org/TR/html4/strict.dtd" />
8 <xsl:template match="//FlatSearch">
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. */
16 table { border-collapse: collapse; }
17 td, th { border: 1px solid black; }
23 <xsl:apply-templates select="row[@ordinal='1']"/>
24 <xsl:apply-templates select="row[not(@ordinal='1')]"/>
31 <xsl:template match="row[@ordinal='1']">
33 <xsl:for-each select="column"><th><xsl:value-of select="@name"/></th></xsl:for-each>
36 <xsl:for-each select="column"><td><xsl:value-of select="."/></td></xsl:for-each>
40 <xsl:template match="row">
42 <xsl:for-each select="column"><td><xsl:value-of select="."/></td></xsl:for-each>