1 <?xml version=
"1.0" encoding=
"ISO-8859-1"?>
2 <!-- Generated by hand -->
4 Copyright (C) 2009 Rod Roark <rod@sunsetsystems.com>
6 This program is free software; you can redistribute it and/or
7 Modify it under the terms of the GNU General Public License
8 as published by the Free Software Foundation; either version 2
9 of the License, or (at your option) any later version.
11 <xsl:stylesheet version=
"1.0"
12 xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform">
13 <xsl:output method=
"xml" omit-xml-declaration=
"yes"/>
14 <xsl:strip-space elements=
"*"/>
15 <xsl:template match=
"/">
16 <xsl:apply-templates select=
"form"/>
18 <xsl:template match=
"form">
19 <xsl:text disable-output-escaping=
"yes"><![CDATA[/* This CSS is used ONLY by the form defined in this same folder
20 * customize it as you see fit for your specific form
23 /* turn off borders for fieldsets, to make them invisible */
28 /* links should be undersized */
33 /* links should grow when clicked */
39 <xsl:if test=
"/form/style='layout'">
40 <xsl:text disable-output-escaping=
"yes"><![CDATA[
41 /* give section objects blue borders, bold cell labels, */
45 border-color: #
0000ff;
50 /* prevent the checkboxes on our sections from bunching up. */
52 page-break-after: always;
55 /* disappear the top button bar */
60 /* center the bottom button bar */
65 /* section labels should be visible, and bold in view, new, ??...*/
67 font-family: sans-serif;
71 /* section labels on the show page. turn them green, and bold. */
74 font-family: sans-serif;
82 /* field labels should also be visible, and bold. */
84 font-family: sans-serif;
91 /* field labels on the show page. turn them bold. */
93 font-family: sans-serif;
100 /* Put some spacing around the edges of the form. */
102 padding:
5pt
5pt
5pt
5pt;
105 /* Use a single font style for most objects in this page. */
107 font-family: Arial, Helvetica, sans-serif;
111 font-family: Arial, Helvetica, sans-serif;
129 /* HACK: keep textareas at an eight point font, so they don't get too wide for our
750px 'view' and 'new' pages. */
135 <xsl:if test=
"layout">
136 <xsl:text disable-output-escaping=
"yes"><![CDATA[
137 /* MORE HACK: compatibility between manual forms, and layout forms */
139 /* groupname sections are section labels on the show page. turn them green, and bold. */
142 font-family: sans-serif;
149 /* as for the labels on a show page, turn them bold. */
151 font-family: sans-serif;
158 <xsl:if test=
"/form/style='paper'">
159 <xsl:text disable-output-escaping=
"yes"><![CDATA[
160 /* The title should be visibly larger on 'paper' style forms. */
166 /* make the entire form
750 pixels wide, with a paper-like background, a black border, and clear margins. */
168 border:
1px solid black;
169 background-color: #ffffcc;
172 margin:
10px
0px
10px
0px;
175 /* do something similar, by making the entire form have a paper-like background, a black border, and margins, but do not set a size, so that the form may flow on paper. */
176 #print_form_container {
177 border:
1px solid black;
178 background-color: #ffffcc;
180 margin:
10px
0px
10px
0px;
189 <!-- create default styles for all the div objects -->
190 <xsl:apply-templates select=
"div|section" mode=
"normal"/>
191 <xsl:apply-templates select=
"div|section" mode=
"print"/>
192 <xsl:text disable-output-escaping=
"yes"><![CDATA[
195 <xsl:template match=
"div|section" mode=
"print"><xsl:text disable-output-escaping=
"yes"><![CDATA[.print_]]
></xsl:text>
196 <xsl:value-of select=
"@name"/>
197 <xsl:text disable-output-escaping=
"yes"><![CDATA[ {
203 <xsl:template match=
"div|section" mode=
"normal"><xsl:text disable-output-escaping=
"yes"><![CDATA[.]]
></xsl:text>
204 <xsl:value-of select=
"@name"/>
205 <xsl:text disable-output-escaping=
"yes"><![CDATA[ {