xref: /AOO41X/main/readlicense_oo/docs/readme/eval.xsl (revision 8809db7a87f97847b57a57f4cd2b0104b2b83182)
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="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>
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="os2"><xsl:if test="@os='OS2' or @gui='WNT'">OS2</xsl:if></th>
46            <th class="mac"><xsl:if test="@os='MACOSX'">MAC</xsl:if></th>
47            <th class="soli"><xsl:if test="@os='SOLARIS' and @cpuname='INTEL'">SOLI</xsl:if></th>
48            <th class="solx"><xsl:if test="@os='SOLARIS' and @cpuname='SPARC'">SOLX</xsl:if></th>
49            <th class="unx"><xsl:if test="@os='LINUX' or @gui='UNX'">UNX</xsl:if></th>
50            <th class="none"><xsl:if test="@os='none'">NONE</xsl:if></th>
51            <th class="all"><xsl:if test="@os='all'">ALL</xsl:if></th>
52            <td>
53                <xsl:choose>
54                    <xsl:when test="@xml:lang='x-comment'">
55                        <span class="comment"><xsl:apply-templates/></span>
56                    </xsl:when>
57                    <xsl:otherwise>
58                        <xsl:if test="not(@style='')">
59                            <xsl:text disable-output-escaping="yes">&lt;</xsl:text><xsl:value-of select="@style"/><xsl:text disable-output-escaping="yes">&gt;</xsl:text>
60                        </xsl:if>
61                        <xsl:apply-templates/>
62                        <xsl:if test="not(@style='')">
63                            <xsl:text disable-output-escaping="yes">&lt;/</xsl:text><xsl:value-of select="@style"/><xsl:text disable-output-escaping="yes">&gt;</xsl:text>
64                        </xsl:if>
65                    </xsl:otherwise>
66                </xsl:choose>
67                </td>
68        </tr>
69    </xsl:template>
70
71    <xsl:template match="List">
72        <xsl:choose>
73        <xsl:when test="@enum='true'">
74            <ol>
75                <xsl:for-each select="child::*">
76                <li><xsl:apply-templates/></li>
77                </xsl:for-each>
78            </ol>
79        </xsl:when>
80        <xsl:otherwise>
81            <ul>
82                <xsl:for-each select="child::*">
83                <li><xsl:apply-templates/></li>
84                </xsl:for-each>
85            </ul>
86        </xsl:otherwise>
87        </xsl:choose>
88
89    </xsl:template>
90
91</xsl:stylesheet>
92
93