xref: /trunk/main/readlicense_oo/docs/readme/eval.xsl (revision 1ecadb572e7010ff3b3382ad9bf179dbc6efadbb)
1<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
2  <xsl:output method="text" />
3    <xsl:template match="/Readme">
4    <html>
5    <head>
6    <title></title>
7    <style type="text/css">
8        h1,h2,h3,h4,h5,p {margin:0px;}
9        .mac {color: #000;}
10        .wnt {color: #000;}
11        .unx {color: #000;}
12        .soli {color: #000;}
13        .solx {color: #000;}
14        .none {color: #000;}
15        .all {color: #000;}
16        .section {background-color: #DEDEDE;}
17        .comment {text-color: #666; font-size: xx-small;}
18        body * {font-size: 9pt}
19    </style>
20    </head>
21    <body>
22    <table border='1' style='border-collapse:collapse;' cellpadding='5'>
23    <tr>
24    <th>attribs</th><th class="wnt">WNT</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>
25    </tr>
26    <xsl:apply-templates />
27    </table>
28    </body>
29    </html>
30    </xsl:template>
31
32    <xsl:template match="Section">
33    <tr>
34        <th colspan="9" align='left' class="section">SECTION <xsl:value-of select="@id" /></th>
35        </tr>
36        <xsl:apply-templates />
37    </xsl:template>
38
39    <xsl:template match="Paragraph">
40        <tr>
41      <td>
42                <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>
43            </td>
44            <th class="wnt"><xsl:if test="@os='WNT' or @gui='WNT'">WNT</xsl:if></th>
45            <th class="mac"><xsl:if test="@os='MACOSX'">MAC</xsl:if></th>
46            <th class="soli"><xsl:if test="@os='SOLARIS' and @cpuname='INTEL'">SOLI</xsl:if></th>
47            <th class="solx"><xsl:if test="@os='SOLARIS' and @cpuname='SPARC'">SOLX</xsl:if></th>
48            <th class="unx"><xsl:if test="@os='LINUX' or @gui='UNX'">UNX</xsl:if></th>
49            <th class="none"><xsl:if test="@os='none'">NONE</xsl:if></th>
50            <th class="all"><xsl:if test="@os='all'">ALL</xsl:if></th>
51            <td>
52                <xsl:choose>
53                    <xsl:when test="@xml:lang='x-comment'">
54                        <span class="comment"><xsl:apply-templates/></span>
55                    </xsl:when>
56                    <xsl:otherwise>
57                        <xsl:if test="not(@style='')">
58                            <xsl:text disable-output-escaping="yes">&lt;</xsl:text><xsl:value-of select="@style"/><xsl:text disable-output-escaping="yes">&gt;</xsl:text>
59                        </xsl:if>
60                        <xsl:apply-templates/>
61                        <xsl:if test="not(@style='')">
62                            <xsl:text disable-output-escaping="yes">&lt;/</xsl:text><xsl:value-of select="@style"/><xsl:text disable-output-escaping="yes">&gt;</xsl:text>
63                        </xsl:if>
64                    </xsl:otherwise>
65                </xsl:choose>
66                </td>
67        </tr>
68    </xsl:template>
69
70    <xsl:template match="List">
71        <xsl:choose>
72        <xsl:when test="@enum='true'">
73            <ol>
74                <xsl:for-each select="child::*">
75                <li><xsl:apply-templates/></li>
76                </xsl:for-each>
77            </ol>
78        </xsl:when>
79        <xsl:otherwise>
80            <ul>
81                <xsl:for-each select="child::*">
82                <li><xsl:apply-templates/></li>
83                </xsl:for-each>
84            </ul>
85        </xsl:otherwise>
86        </xsl:choose>
87
88    </xsl:template>
89
90</xsl:stylesheet>
91
92