]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/help/C/xsl/tactic_quickref.xsl
* Some simplifications to theorem in file totient1.ma.
[helm.git] / matita / help / C / xsl / tactic_quickref.xsl
index 42e435740e719c59253bb75563be8d3671ddf44c..3a46261e0783937c4841fb519cd6ead5f44786e8 100644 (file)
@@ -7,12 +7,14 @@
     omit-xml-declaration="yes"
     />
 
+  <xsl:param name="declarative" value=""/>
+
   <xsl:template match="/">
     <table frame="topbot" rowsep="0" colsep="0" role="grammar">
       <title>tactics</title>
       <tgroup cols="3">
       <tbody>
-       <xsl:apply-templates select="//varlistentry[@role='tactic.synopsis']">
+       <xsl:apply-templates select="//chapter[@id=concat('sec_',$declarative,'tactics')]//varlistentry[@role='tactic.synopsis']">
         <xsl:sort select="ancestor::sect1/title" />
        </xsl:apply-templates>
       </tbody>
@@ -30,7 +32,7 @@
       <entry>
        <xsl:choose>
         <xsl:when test="position()=1">
-         <xsl:attribute name="id">grammar.tactic</xsl:attribute>
+         <xsl:attribute name="id">grammar.<xsl:value-of select="$declarative"/>tactic</xsl:attribute>
          <xsl:text disable-output-escaping='yes'>&amp;tactic;</xsl:text>
         </xsl:when>
        </xsl:choose>