/usr/share/doc/prover9-doc/examples/interp3.xsl is in prover9-doc 0.0.200902a-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 | <?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- ************************ root (interps) template *************** -->
<xsl:template match="/">
<html>
<body>
<style type="text/css">
td { text-align: right }
</style>
<xsl:if test="interps/heading">
<h3>Mace4 Job</h3>
<blockquote>
<pre>
<xsl:value-of select="interps/heading" />
</pre>
</blockquote>
</xsl:if>
<xsl:if test="interps/source">
<p />This page was generated from file
<a href="{interps/source}">
<xsl:value-of select="interps/source" />
</a>.
</xsl:if>
<xsl:if test="interps/input">
<hr />
<h3>Constraints</h3>
<blockquote>
<pre>
<xsl:value-of select="interps/input" />
</pre>
</blockquote>
</xsl:if>
<!-- print any attributes of interps -->
<xsl:for-each select="interps/@*">
<xsl:value-of select="name()" /> = <xsl:value-of select="."/><br/>
</xsl:for-each>
<xsl:apply-templates select="interps/interp"/>
</body>
</html>
</xsl:template>
<!-- ************************ interp template *********************** -->
<xsl:template match="interp">
<hr />
<h3>Interpretation
<xsl:for-each select="@*">
, <xsl:value-of select="name()" /> = <xsl:value-of select="."/>
</xsl:for-each>
</h3>
<xsl:apply-templates select="op0" />
<xsl:apply-templates select="op1" />
<xsl:apply-templates select="op2" />
<xsl:apply-templates select="opn" />
</xsl:template>
<!-- ************************ op0 template *********************** -->
<xsl:template match="op0">
<p />
Constant <xsl:value-of select="sym"/> = <xsl:value-of select="v"/>
</xsl:template>
<!-- ************************ op1 template *********************** -->
<xsl:template match="op1">
<p />
Unary
<xsl:value-of select="@type"/>
<xsl:text> </xsl:text>
<xsl:value-of select="sym"/>
<blockquote>
<table cellpadding="4" rules="groups">
<colgroup />
<tr><td></td>
<xsl:for-each select="head/i">
<td><font color="red"><xsl:value-of select="."/></font></td>
</xsl:for-each>
</tr>
<tbody>
<tr><td></td>
<xsl:for-each select="row/v">
<td><xsl:value-of select="."/></td>
</xsl:for-each>
</tr>
</tbody>
</table>
</blockquote>
</xsl:template>
<!-- ************************ row template *********************** -->
<xsl:template match="row">
<tr>
<td><font color="red"><xsl:value-of select="i"/></font></td>
<xsl:for-each select="v">
<td><xsl:value-of select="."/></td>
</xsl:for-each>
</tr>
</xsl:template>
<!-- ************************ op2 template *********************** -->
<xsl:template match="op2">
<p />
Binary
<xsl:value-of select="@type"/>
<xsl:text> </xsl:text>
<xsl:value-of select="sym"/>
<blockquote>
<table cellpadding="4" rules="groups">
<colgroup />
<tr><td></td>
<xsl:for-each select="head/i">
<td><font color="red"><xsl:value-of select="."/></font></td>
</xsl:for-each>
</tr>
<tbody>
<xsl:apply-templates select="row"/>
</tbody>
</table>
</blockquote>
</xsl:template>
<!-- ************************ tupval template *********************** -->
<xsl:template match="tupval">
<tr>
<xsl:for-each select="tup/i">
<td><font color="red"><xsl:value-of select="."/></font></td>
</xsl:for-each>
<td><xsl:value-of select="v"/></td>
</tr>
</xsl:template>
<!-- ************************ opn template *********************** -->
<xsl:template match="opn">
<p />
<xsl:value-of select="@arity"/>-ary
<xsl:value-of select="@type"/>
<xsl:text> </xsl:text>
<xsl:value-of select="sym"/>
<xsl:variable name="arity"><xsl:value-of select="@arity"/></xsl:variable>
<blockquote>
<table cellpadding="1" rules="groups">
<colgroup span="{$arity}"/>
<tr><th colspan="{$arity}">tuple</th><th>value</th></tr>
<tbody align="center">
<xsl:apply-templates select="tupval"/>
</tbody>
</table>
</blockquote>
</xsl:template>
</xsl:stylesheet>
|