1<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
2<!--***********************************************************
3 *
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements.  See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership.  The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License.  You may obtain a copy of the License at
11 *
12 *   http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied.  See the License for the
18 * specific language governing permissions and limitations
19 * under the License.
20 *
21 ***********************************************************-->
22  <xsl:output method="text" />
23	<xsl:template match="/Readme">
24	<html>
25	<head>
26	<title></title>
27	<style type="text/css">
28		h1,h2,h3,h4,h5,p {margin:0px;}
29		.mac {color: #000;}
30		.wnt {color: #000;}
31		.unx {color: #000;}
32		.soli {color: #000;}
33		.solx {color: #000;}
34		.none {color: #000;}
35		.all {color: #000;}
36		.section {background-color: #DEDEDE;}
37		.comment {text-color: #666; font-size: xx-small;}
38		body * {font-size: 9pt}
39	</style>
40	</head>
41	<body>
42	<table border='1' style='border-collapse:collapse;' cellpadding='5'>
43	<tr>
44	<th>attribs</th><th class="wnt">WNT</th><th class="os2">OS2</th><th class="mac">MAC</th><th class="soli">SOLI</th><th class="solx">SOLX</th><th class="unx">UNX</th><th>none</th><th>all</th><th>Content</th>
45	</tr>
46	<xsl:apply-templates />
47	</table>
48	</body>
49	</html>
50	</xsl:template>
51
52	<xsl:template match="Section">
53  	<tr>
54		<th colspan="9" align='left' class="section">SECTION <xsl:value-of select="@id" /></th>
55		</tr>
56		<xsl:apply-templates />
57	</xsl:template>
58
59	<xsl:template match="Paragraph">
60		<tr>
61      <td>
62				<xsl:if test="@os">os=<xsl:value-of select="@os"/></xsl:if><xsl:text> </xsl:text><xsl:if test="@gui">gui=<xsl:value-of select="@gui"/></xsl:if>
63			</td>
64			<th class="wnt"><xsl:if test="@os='WNT' or @gui='WNT'">WNT</xsl:if></th>
65			<th class="os2"><xsl:if test="@os='OS2' or @gui='WNT'">OS2</xsl:if></th>
66			<th class="mac"><xsl:if test="@os='MACOSX'">MAC</xsl:if></th>
67			<th class="soli"><xsl:if test="@os='SOLARIS' and @cpuname='INTEL'">SOLI</xsl:if></th>
68			<th class="solx"><xsl:if test="@os='SOLARIS' and @cpuname='SPARC'">SOLX</xsl:if></th>
69			<th class="unx"><xsl:if test="@os='LINUX' or @gui='UNX'">UNX</xsl:if></th>
70			<th class="none"><xsl:if test="@os='none'">NONE</xsl:if></th>
71			<th class="all"><xsl:if test="@os='all'">ALL</xsl:if></th>
72			<td>
73				<xsl:choose>
74					<xsl:when test="@xml:lang='x-comment'">
75						<span class="comment"><xsl:apply-templates/></span>
76					</xsl:when>
77					<xsl:otherwise>
78						<xsl:if test="not(@style='')">
79							<xsl:text disable-output-escaping="yes">&lt;</xsl:text><xsl:value-of select="@style"/><xsl:text disable-output-escaping="yes">&gt;</xsl:text>
80						</xsl:if>
81						<xsl:apply-templates/>
82						<xsl:if test="not(@style='')">
83							<xsl:text disable-output-escaping="yes">&lt;/</xsl:text><xsl:value-of select="@style"/><xsl:text disable-output-escaping="yes">&gt;</xsl:text>
84						</xsl:if>
85					</xsl:otherwise>
86				</xsl:choose>
87				</td>
88		</tr>
89	</xsl:template>
90
91	<xsl:template match="List">
92		<xsl:choose>
93		<xsl:when test="@enum='true'">
94			<ol>
95				<xsl:for-each select="child::*">
96				<li><xsl:apply-templates/></li>
97				</xsl:for-each>
98			</ol>
99		</xsl:when>
100		<xsl:otherwise>
101			<ul>
102				<xsl:for-each select="child::*">
103				<li><xsl:apply-templates/></li>
104				</xsl:for-each>
105			</ul>
106		</xsl:otherwise>
107		</xsl:choose>
108
109	</xsl:template>
110
111</xsl:stylesheet>
112
113