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