1 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
2 xmlns:m="http://www.w3.org/1998/Math/MathML">
5 <xsl:template match="term">
8 <xsl:when test="@opid="le"">
10 <m:leq definitionURL="{@uri}"/>
11 <xsl:apply-templates select="*"/>
15 <xsl:when test="string(@opid)="exists"">
17 <m:exists definitionURL="{@uri}"/>
20 <xsl:value-of select="binder[1]/@var"/>
24 <xsl:apply-templates select="*[1]"/>
26 <xsl:apply-templates select="*[3]"/>
30 <xsl:when test="string(@opid)="all"">
32 <m:csymbol definitionURL="{@uri}">forall</m:csymbol>
35 <xsl:value-of select="binder[1]/@var"/>
38 <xsl:apply-templates select="*[1]"/>
41 <xsl:apply-templates select="*[3]"/>
45 <xsl:when test="string(@opid)="and"">
47 <m:and definitionURL="{@uri}"/>
48 <xsl:apply-templates select="*[1]"/>
49 <xsl:apply-templates select="*[2]"/>
53 <xsl:when test="string(@opid)="or"">
55 <m:or definitionURL="{@uri}"/>
56 <xsl:apply-templates select="*[1]"/>
57 <xsl:apply-templates select="*[2]"/>
61 <xsl:when test="string(@opid)="member"">
63 <m:in definitionURL="{@uri}"/>
64 <xsl:apply-templates select="*[2]"/>
65 <xsl:apply-templates select="*[1]"/>
69 <xsl:when test="string(@opid)="implies"">
71 <m:implies definitionURL="{@uri}"/>
72 <xsl:apply-templates select="*[1]"/>
73 <xsl:apply-templates select="*[2]"/>
77 <xsl:when test="string(@opid)="not"">
79 <m:not definitionURL="{@uri}"/>
80 <xsl:apply-templates select="*[1]"/>
84 <xsl:when test="string(@opid)="nat"">
85 <m:naturalnumbers definitionURL="{@uri}"/>
88 <xsl:when test="string(@opid)="so_lambda"">
90 <m:csymbol definitionURL="{@uri}">so_lambda</m:csymbol>
92 <xsl:when test="*[1]=so_variable">
94 <m:ci>so_variable</m:ci>
96 <xsl:value-of select="so_variable/@var"/>
99 <!--<xsl:apply-templates select="*[2]"/>
100 <xsl:apply-templates select="*[3]"/>-->
101 <xsl:apply-templates/>
104 <xsl:apply-templates select="*[1]"/>
105 <xsl:apply-templates select="*[2]"/>
111 <xsl:when test="string(@opid)="so_apply"">
113 <m:csymbol definitionURL="{@uri}">so_apply</m:csymbol>
114 <xsl:apply-templates select="*[1]"/>
115 <xsl:apply-templates select="*[2]"/>
119 <xsl:when test="string(@opid)="gcd_p"">
121 <m:ci definitionURL="{@uri}">gcd_p</m:ci>
122 <xsl:apply-templates/>
126 <xsl:when test="string(@opid)="decidable"">
128 <m:ci definitionURL="{@uri}">decidable</m:ci>
129 <xsl:apply-templates/>
133 <xsl:when test="string(@opid)="int_seg"">
134 <m:interval definitionURL="{@uri}">
135 <xsl:apply-templates select="*[1]"/>
136 <xsl:apply-templates select="*[2]"/>
139 <xsl:when test="string(@opid)="ge"">
141 <m:geq definitionURL="{@uri}"/>
142 <xsl:apply-templates select="*[1]"/>
143 <xsl:apply-templates select="*[2]"/>
147 <xsl:when test="string(@opid)="false"">
148 <m:false definitionURL="{@uri}"/>
151 <xsl:when test="string(@opid)="true"">
152 <m:true definitionURL="{@uri}"/>
155 <!-- ALTRE ASTRAZIONI -->
158 <m:csymbol>app</m:csymbol>
159 <m:ci definitionURL="{@uri}">
160 <xsl:value-of select="@opid"/>
162 <xsl:apply-templates/>