<!-- Variable containing the absolute path of the CIC file -->
<!--******************************************************************-->
-<xsl:variable name="absPath">http://localhost:8081/get?url=</xsl:variable>
+<xsl:variable name="absPath">http://localhost:8081/getciconly?uri=</xsl:variable>
<!-- ************************* LOGIC *********************************-->
<!-- AND -->
-<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/coq/INIT/Logic/Conjunction/and.ind'] and (count(child::*) = 3)]" mode="pure">
+<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/Coq/Init/Logic/Conjunction/and.ind'] and (count(child::*) = 3)]" mode="pure">
<m:apply helm:xref="{@id}">
<m:and definitionURL="{MUTIND/@uri}" helm:xref="{MUTIND/@id}"/>
<xsl:apply-templates select="*[2]" mode="noannot"/>
<!-- OR -->
-<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/coq/INIT/Logic/Disjunction/or.ind'] and (count(child::*) = 3)]" mode="pure">
+<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/Coq/Init/Logic/Disjunction/or.ind'] and (count(child::*) = 3)]" mode="pure">
<m:apply helm:xref="{@id}">
<m:or definitionURL="{MUTIND/@uri}" helm:xref="{MUTIND/@id}"/>
<xsl:apply-templates select="*[2]" mode="noannot"/>
<!-- NOT -->
-<xsl:template match="APPLY[CONST[attribute::uri='cic:/coq/INIT/Logic/not.con'] and (count(child::*) = 2)]" mode="pure">
+<xsl:template match="APPLY[CONST[attribute::uri='cic:/Coq/Init/Logic/not.con'] and (count(child::*) = 2)]" mode="pure">
<m:apply helm:xref="{@id}">
<m:not definitionURL="{CONST/@uri}" helm:xref="{MUTIND/@id}"/>
<xsl:apply-templates select="*[2]" mode="noannot"/>
<!-- IFF -->
<!--
-<xsl:template match="APPLY[CONST[attribute::uri='cic:/coq/INIT/Logic/Equivalence/iff.ind'] and (count(child::*) = 3)]" mode="pure">
+<xsl:template match="APPLY[CONST[attribute::uri='cic:/Coq/Init/Logic/Equivalence/iff.ind'] and (count(child::*) = 3)]" mode="pure">
<m:apply helm:xref="{@id}">
<m:iff definitionURL="{CONST/@uri}" helm:xref="{CONST/@id}"/>
<xsl:apply-templates select="*[2]" mode="noannot"/>
<!-- EXISTS -->
-<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/coq/INIT/Logic/First_order_quantifiers/ex.ind' or attribute::uri='cic:/coq/INIT/Logic_Type/exT.ind'] and (count(child::*) = 3)]" mode="pure">
+<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/Coq/Init/Logic/First_order_quantifiers/ex.ind' or attribute::uri='cic:/Coq/Init/Logic_Type/exT.ind'] and (count(child::*) = 3)]" mode="pure">
<m:apply helm:xref="{@id}">
<m:exists definitionURL="{MUTIND/@uri}" helm:xref="{MUTIND/@id}"/>
<xsl:choose>
<xsl:when test="name(*[3]) = 'LAMBDA'">
<m:bvar>
- <m:ci><xsl:value-of select="LAMBDA/target/@binder"/></m:ci>
+ <m:ci><xsl:call-template name="insert_subscript"><xsl:with-param name="node_value"><xsl:value-of select="LAMBDA/target/@binder"/></xsl:with-param></xsl:call-template></m:ci>
</m:bvar>
<xsl:apply-templates select="LAMBDA/target" mode="noannot"/>
</xsl:when>
</m:apply>
</xsl:template>
-<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/coq/INIT/Logic/First_order_quantifiers/ex2.ind' or attribute::uri='cic:/coq/INIT/Logic_Type/exT2.ind'] and (count(child::*) = 4)]" mode="pure">
+<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/Coq/Init/Logic/First_order_quantifiers/ex2.ind' or attribute::uri='cic:/Coq/Init/Logic_Type/exT2.ind'] and (count(child::*) = 4)]" mode="pure">
<m:apply helm:xref="{@id}">
<m:exists definitionURL="{MUTIND/@uri}" helm:xref="{MUTIND/@id}"/>
<xsl:choose>
<xsl:when test="name(*[3]) = 'LAMBDA'">
<xsl:variable name="bvarname" select="*[3]/target/@binder"/>
<m:bvar>
- <m:ci><xsl:value-of select="$bvarname"/></m:ci>
+ <m:ci><xsl:call-template name="insert_subscript"><xsl:with-param name="node_value"><xsl:value-of select="$bvarname"/></xsl:with-param></xsl:call-template></m:ci>
</m:bvar>
<m:condition>
<xsl:apply-templates select="LAMBDA[1]/target" mode="noannot"/>
<m:apply>
<m:csymbol>app</m:csymbol>
<xsl:apply-templates select="*[4]" mode="noannot"/>
- <m:ci><xsl:value-of select="$bvarname"/></m:ci>
+ <m:ci><xsl:call-template name="insert_subscript"><xsl:with-param name="node_value"><xsl:value-of select="$bvarname"/></xsl:with-param></xsl:call-template></m:ci>
</m:apply>
</xsl:otherwise>
</xsl:choose>
<xsl:when test="name(*[4]) = 'LAMBDA'">
<xsl:variable name="bvarname" select="*[4]/target/@binder"/>
<m:bvar>
- <m:ci><xsl:value-of select="$bvarname"/></m:ci>
+ <m:ci><xsl:call-template name="insert_subscript"><xsl:with-param name="node_value"><xsl:value-of select="$bvarname"/></xsl:with-param></xsl:call-template></m:ci>
</m:bvar>
<m:condition>
<m:apply>
<m:csymbol>app</m:csymbol>
<xsl:apply-templates select="*[3]" mode="noannot"/>
- <m:ci><xsl:value-of select="$bvarname"/></m:ci>
+ <m:ci><xsl:call-template name="insert_subscript"><xsl:with-param name="node_value"><xsl:value-of select="$bvarname"/></xsl:with-param></xsl:call-template></m:ci>
</m:apply>
</m:condition>
<xsl:apply-templates select="*[4]/target" mode="noannot"/>
<!-- EQUALITY -->
-<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/coq/INIT/Logic/Equality/eq.ind'] and (count(child::*) = 4)]" mode="pure">
+<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/Coq/Init/Logic/Equality/eq.ind'] and (count(child::*) = 4)]" mode="pure">
<m:apply helm:xref="{@id}">
<m:eq definitionURL="{MUTIND/@uri}" helm:xref="{MUTIND/@id}"/>
<xsl:apply-templates select="*[3]" mode="noannot"/>
<!-- TYPE EQUALITY -->
-<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/coq/INIT/Logic_Type/eqT.ind'] and (count(child::*) = 4)]" mode="pure">
+<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/Coq/Init/Logic_Type/eqT.ind'] and (count(child::*) = 4)]" mode="pure">
<m:apply helm:xref="{@id}">
<m:eq definitionURL="{MUTIND/@uri}" helm:xref="{MUTIND/@id}"/>
<xsl:apply-templates select="*[3]" mode="noannot"/>
<!-- NOT-EQ -->
<!-- NOT and EQ have no parameters -->
-<xsl:template match="APPLY[CONST[attribute::uri='cic:/coq/INIT/Logic/not.con']
-and (count(child::*) = 2) and APPLY[MUTIND[attribute::uri='cic:/coq/INIT/Logic/Equality/eq.ind']]]" mode="pure">
+<xsl:template match="APPLY[CONST[attribute::uri='cic:/Coq/Init/Logic/not.con']
+and (count(child::*) = 2) and APPLY[MUTIND[attribute::uri='cic:/Coq/Init/Logic/Equality/eq.ind']]]" mode="pure">
<xsl:choose>
<xsl:when test="count(APPLY/child::*) = 4">
<m:apply helm:xref="{@id}">
</xsl:template>
<!-- NOT-EQT -->
-<xsl:template match="APPLY[CONST[attribute::uri='cic:/coq/INIT/Logic/not.con']
-and (count(child::*) = 2) and APPLY[MUTIND[attribute::uri='cic:/coq/INIT/Logic_Type/eqT.ind']]]" mode="pure">
+<xsl:template match="APPLY[CONST[attribute::uri='cic:/Coq/Init/Logic/not.con']
+and (count(child::*) = 2) and APPLY[MUTIND[attribute::uri='cic:/Coq/Init/Logic_Type/eqT.ind']]]" mode="pure">
<xsl:choose>
<xsl:when test="count(APPLY/child::*) = 4">
<m:apply helm:xref="{@id}">
<!-- *************************** PEANO ********************************* -->
-<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/coq/INIT/Peano/le.ind'] and (count(child::*) = 3)]" mode="pure">
+<xsl:template match="APPLY[MUTIND[attribute::uri='cic:/Coq/Init/Peano/le.ind'] and (count(child::*) = 3)]" mode="pure">
<m:apply helm:xref="{@id}">
<m:leq definitionURL="{MUTIND/@uri}" helm:xref="{MUTIND/@id}"/>
<xsl:apply-templates select="*[2]" mode="noannot"/>
</m:apply>
</xsl:template>
-<xsl:template match="APPLY[CONST[attribute::uri='cic:/coq/INIT/Peano/lt.con'] and (count(child::*) = 3)]" mode="pure">
+<xsl:template match="APPLY[CONST[attribute::uri='cic:/Coq/Init/Peano/lt.con'] and (count(child::*) = 3)]" mode="pure">
<m:apply helm:xref="{@id}">
<m:lt definitionURL="{CONST/@uri}" helm:xref="{CONST/@id}"/>
<xsl:apply-templates select="*[2]" mode="noannot"/>
</m:apply>
</xsl:template>
-<xsl:template match="APPLY[CONST[attribute::uri='cic:/coq/INIT/Peano/ge.con'] and (count(child::*) = 3)]" mode="pure">
+<xsl:template match="APPLY[CONST[attribute::uri='cic:/Coq/Init/Peano/ge.con'] and (count(child::*) = 3)]" mode="pure">
<m:apply helm:xref="{@id}">
<m:geq definitionURL="{CONST/@uri}" helm:xref="{CONST/@id}"/>
<xsl:apply-templates select="*[2]" mode="noannot"/>
</m:apply>
</xsl:template>
-<xsl:template match="APPLY[CONST[attribute::uri='cic:/coq/INIT/Peano/gt.con'] and (count(child::*) = 3)]" mode="pure">
+<xsl:template match="APPLY[CONST[attribute::uri='cic:/Coq/Init/Peano/gt.con'] and (count(child::*) = 3)]" mode="pure">
<m:apply helm:xref="{@id}">
<m:gt definitionURL="{CONST/@uri}" helm:xref="{CONST/@id}"/>
<xsl:apply-templates select="*[2]" mode="noannot"/>