/[volute]/trunk/projects/grid/uws/doc/ivoadoc/W3C-REC.xsl
ViewVC logotype

Contents of /trunk/projects/grid/uws/doc/ivoadoc/W3C-REC.xsl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 982 - (show annotations)
Mon Apr 20 15:07:43 2009 UTC (11 years, 7 months ago) by harripa
File MIME type: text/plain
File size: 10874 byte(s)
restructured directory tree to take advantage of svn external refs
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3
4 Copyright Antenna House, Inc. (http://www.antennahouse.com) 2001, 2002.
5
6 Since this stylesheet is originally developed by Antenna House to be used with XSL Formatter, it may not be compatible with another XSL-FO processors.
7
8 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, provided that the above copyright notice(s) and this permission notice appear in all copies of the Software and that both the above copyright notice(s) and this permission notice appear in supporting documentation.
9
10 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
11
12 -->
13
14 <xsl:stylesheet version="1.0"
15 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
16 xmlns:fo="http://www.w3.org/1999/XSL/Format"
17 xmlns:html="http://www.w3.org/1999/xhtml">
18
19 <xsl:import href="xhtml2fo.xsl"/>
20
21 <xsl:output method="xml"
22 version="1.0"
23 encoding="UTF-8"
24 indent="no"/>
25
26 <!--======================================================================
27 Parameters
28 =======================================================================-->
29
30 <!-- page size -->
31 <xsl:param name="page-width">auto</xsl:param>
32 <xsl:param name="page-height">auto</xsl:param>
33 <xsl:param name="page-margin-top">1in</xsl:param>
34 <xsl:param name="page-margin-bottom">1in</xsl:param>
35 <xsl:param name="page-margin-left">1in</xsl:param>
36 <xsl:param name="page-margin-right">1in</xsl:param>
37
38 <!-- page header and footer -->
39 <xsl:param name="page-header-margin">0.5in</xsl:param>
40 <xsl:param name="page-footer-margin">0.5in</xsl:param>
41 <xsl:param name="title-print-in-header">true</xsl:param>
42 <xsl:param name="page-number-print-in-footer">true</xsl:param>
43
44 <!-- multi column -->
45 <xsl:param name="column-count">1</xsl:param>
46 <xsl:param name="column-gap">12pt</xsl:param>
47
48 <!-- writing-mode: lr-tb | rl-tb | tb-rl -->
49 <xsl:param name="writing-mode">lr-tb</xsl:param>
50
51 <!-- text-align: justify | start -->
52 <xsl:param name="text-align">justify</xsl:param>
53
54 <!-- hyphenate: true | false -->
55 <xsl:param name="hyphenate">true</xsl:param>
56
57
58 <!--======================================================================
59 Attribute Sets
60 =======================================================================-->
61
62 <!--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
63 Root
64 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-->
65
66 <xsl:attribute-set name="root">
67 <xsl:attribute name="writing-mode"><xsl:value-of select="$writing-mode"/></xsl:attribute>
68 <xsl:attribute name="hyphenate"><xsl:value-of select="$hyphenate"/></xsl:attribute>
69 <xsl:attribute name="text-align"><xsl:value-of select="$text-align"/></xsl:attribute>
70 <!-- specified on fo:root to change the properties' initial values -->
71 </xsl:attribute-set>
72
73 <xsl:attribute-set name="page">
74 <xsl:attribute name="page-width"><xsl:value-of select="$page-width"/></xsl:attribute>
75 <xsl:attribute name="page-height"><xsl:value-of select="$page-height"/></xsl:attribute>
76 <!-- specified on fo:simple-page-master -->
77 </xsl:attribute-set>
78
79 <xsl:attribute-set name="body">
80 <!-- specified on fo:flow's only child fo:block -->
81 <xsl:attribute name="font-family">sans-serif</xsl:attribute>
82 </xsl:attribute-set>
83
84 <xsl:attribute-set name="page-header">
85 <!-- specified on (page-header)fo:static-content's only child fo:block -->
86 <xsl:attribute name="font-size">small</xsl:attribute>
87 <xsl:attribute name="text-align">center</xsl:attribute>
88 </xsl:attribute-set>
89
90 <xsl:attribute-set name="page-footer">
91 <!-- specified on (page-footer)fo:static-content's only child fo:block -->
92 <xsl:attribute name="font-size">small</xsl:attribute>
93 <xsl:attribute name="text-align">center</xsl:attribute>
94 </xsl:attribute-set>
95
96 <!--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
97 Block-level
98 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-->
99
100 <xsl:attribute-set name="h1">
101 <xsl:attribute name="font-size">170%</xsl:attribute>
102 <xsl:attribute name="font-weight">normal</xsl:attribute>
103 <xsl:attribute name="font-family">sans-serif</xsl:attribute>
104 <xsl:attribute name="color">#005A9C</xsl:attribute>
105 <xsl:attribute name="text-align">start</xsl:attribute>
106 </xsl:attribute-set>
107
108 <xsl:attribute-set name="h2">
109 <xsl:attribute name="font-size">140%</xsl:attribute>
110 <xsl:attribute name="font-weight">normal</xsl:attribute>
111 <xsl:attribute name="font-family">sans-serif</xsl:attribute>
112 <xsl:attribute name="color">#005A9C</xsl:attribute>
113 <xsl:attribute name="text-align">start</xsl:attribute>
114 </xsl:attribute-set>
115
116 <xsl:attribute-set name="h3">
117 <xsl:attribute name="font-size">120%</xsl:attribute>
118 <xsl:attribute name="font-weight">normal</xsl:attribute>
119 <xsl:attribute name="font-family">sans-serif</xsl:attribute>
120 <xsl:attribute name="color">#005A9C</xsl:attribute>
121 <xsl:attribute name="text-align">start</xsl:attribute>
122 </xsl:attribute-set>
123
124 <xsl:attribute-set name="h4">
125 <xsl:attribute name="font-size">100%</xsl:attribute>
126 <xsl:attribute name="font-weight">bold</xsl:attribute>
127 <xsl:attribute name="font-family">sans-serif</xsl:attribute>
128 <xsl:attribute name="color">#005A9C</xsl:attribute>
129 <xsl:attribute name="text-align">start</xsl:attribute>
130 </xsl:attribute-set>
131
132 <xsl:attribute-set name="h5">
133 <xsl:attribute name="font-size">100%</xsl:attribute>
134 <xsl:attribute name="font-weight">normal</xsl:attribute>
135 <xsl:attribute name="font-style">italic</xsl:attribute>
136 <xsl:attribute name="font-family">sans-serif</xsl:attribute>
137 <xsl:attribute name="color">#005A9C</xsl:attribute>
138 <xsl:attribute name="text-align">start</xsl:attribute>
139 </xsl:attribute-set>
140
141 <xsl:attribute-set name="h6">
142 <xsl:attribute name="font-size">100%</xsl:attribute>
143 <xsl:attribute name="font-weight">normal</xsl:attribute>
144 <xsl:attribute name="font-variant">small-caps</xsl:attribute>
145 <xsl:attribute name="font-family">sans-serif</xsl:attribute>
146 <xsl:attribute name="color">#005A9C</xsl:attribute>
147 <xsl:attribute name="text-align">start</xsl:attribute>
148 </xsl:attribute-set>
149
150 <xsl:attribute-set name="p">
151 </xsl:attribute-set>
152
153 <xsl:attribute-set name="blockquote">
154 </xsl:attribute-set>
155
156 <xsl:attribute-set name="pre">
157 <xsl:attribute name="start-indent">inherited-property-value(start-indent) + 2em</xsl:attribute>
158 </xsl:attribute-set>
159
160 <xsl:attribute-set name="address">
161 <xsl:attribute name="font-style">italic</xsl:attribute>
162 </xsl:attribute-set>
163
164 <xsl:attribute-set name="hr">
165 </xsl:attribute-set>
166
167 <!--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
168 List
169 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-->
170 <!--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
171 Table
172 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-->
173 <!--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
174 Inline-level
175 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-->
176 <!--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
177 Link
178 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-->
179 <!-- default attributes are defined in xhtml2fo.xsl -->
180
181
182 <!--======================================================================
183 misc. additional
184 =======================================================================-->
185
186 <!-- .hide { display: none } -->
187 <xsl:template match="*[@class = 'hide']"/>
188
189 <!-- div.head { margin-bottom: 1em } -->
190 <xsl:template match="html:div[@class = 'head']">
191 <fo:block space-after="1em">
192 <xsl:call-template name="process-common-attributes-and-children"/>
193 </fo:block>
194 </xsl:template>
195
196 <!-- div.head h1 { margin-top: 2em; clear: both } -->
197 <xsl:template match="html:div[@class = 'head']//html:h1">
198 <fo:block xsl:use-attribute-sets="h1"
199 space-before="2em" space-before.conditionality="retain">
200 <xsl:call-template name="process-common-attributes-and-children"/>
201 </fo:block>
202 </xsl:template>
203
204 <!-- div.head table { margin-left: 2em; margin-top: 2em } -->
205 <xsl:template match="html:div[@class = 'head']//html:table">
206 <fo:table-and-caption xsl:use-attribute-sets="table-and-caption"
207 start-indent="2em" end-indent="2em">
208 <xsl:call-template name="make-table-caption"/>
209 <fo:table xsl:use-attribute-sets="table">
210 <xsl:call-template name="process-table"/>
211 </fo:table>
212 </fo:table-and-caption>
213 </xsl:template>
214
215 <!-- div.head img { color: white; border: none } /* remove border from top image */ -->
216 <xsl:template match="html:div[@class = 'head']//html:img">
217 <fo:external-graphic xsl:use-attribute-sets="img"
218 color="white" border="none">
219 <xsl:call-template name="process-img"/>
220 </fo:external-graphic>
221 </xsl:template>
222
223 <!-- p.copyright { font-size: small } -->
224 <xsl:template match="html:p[@class = 'copyright']">
225 <fo:block xsl:use-attribute-sets="p" font-size="small">
226 <xsl:call-template name="process-common-attributes-and-children"/>
227 </fo:block>
228 </xsl:template>
229
230 <!-- p.copyright small { font-size: small } -->
231 <xsl:template match="html:p[@class = 'copyright']//html:small">
232 <fo:inline font-size="small">
233 <xsl:call-template name="process-common-attributes-and-children"/>
234 </fo:inline>
235 </xsl:template>
236
237 <!-- ul.toc { list-style: none; } -->
238 <xsl:template match="html:ul[@class = 'toc']/html:li">
239 <fo:list-item xsl:use-attribute-sets="ul-li">
240 <xsl:call-template name="process-common-attributes"/>
241 <fo:list-item-label>
242 <fo:block/>
243 </fo:list-item-label>
244 <fo:list-item-body start-indent="body-start()">
245 <fo:block>
246 <xsl:apply-templates/>
247 </fo:block>
248 </fo:list-item-body>
249 </fo:list-item>
250 </xsl:template>
251
252 </xsl:stylesheet>

Properties

Name Value
svn:mergeinfo
svn:mime-type text/plain

msdemlei@ari.uni-heidelberg.de
ViewVC Help
Powered by ViewVC 1.1.26