]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/style/objcontent.xsl
- the mathql interpreter is not helm-dependent any more
[helm.git] / helm / style / objcontent.xsl
index aef9daa6b666828280ec4a2b6bf1b8302c37f74b..ceb7a22bacea1b6818a37540ac0ad87c09534d01 100644 (file)
 <!-- CIC OBJECTS -->
 
 <xsl:template match="Sequent">  <!-- For Sequents there are no annotations --> 
-    <Sequent helm:xref="{@id}">
-     <xsl:for-each select="Declaration|Definition">
+    <Sequent helm:xref="{@id}" no="{@no}">
+     <xsl:for-each select="Decl|Def|Hidden">
       <xsl:copy>
        <xsl:attribute name="name">
         <xsl:value-of select="@name"/>
        </xsl:attribute>
+       <xsl:attribute name="helm:xref">
+        <xsl:value-of select="@id"/>
+       </xsl:attribute>
        <xsl:apply-templates select="*[1]"/>
       </xsl:copy>
      </xsl:for-each>
 <xsl:template match="CurrentProof" mode="noannot">
     <CurrentProof name="{@name}" helm:xref="{@id}">
      <xsl:for-each select="Conjecture">
-      <Conjecture no="{@no}">
-        <xsl:apply-templates select="."/>
+      <Conjecture no="{@no}" helm:xref="{@id}">
+        <xsl:for-each select="*">
+         <xsl:copy>
+          <xsl:copy-of select="@name"/>
+          <xsl:attribute name="helm:xref">
+           <xsl:value-of select="@id"/>
+          </xsl:attribute>
+          <xsl:apply-templates select="*"/>
+         </xsl:copy>
+        </xsl:for-each>
       </Conjecture>
      </xsl:for-each>
      <body>