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