Shlomi Fish avatar Shlomi Fish committed 5e8f7f1

Move the introduction before the Table-of-Contents.

Yay! Finally.

Comments (0)

Files changed (2)


      customizations that use xsl:apply-imports to wrongly
      apply the chunking version instead of the original
      non-chunking version to format an element.  -->
-<xsl:include href="onechunk.xsl"/>
+<xsl:include href="chunk-code.xsl"/>
+<xsl:param name="onechunk" select="1"/>
+<xsl:param name="suppress.navigation">1</xsl:param>
+<xsl:template name="">
+  <xsl:param name="object" select="."/>
+  <xsl:text>#</xsl:text>
+  <xsl:call-template name="">
+    <xsl:with-param name="object" select="$object"/>
+  </xsl:call-template>


 <xsl:template name="generate.html.title">
 <xsl:template match="d:article" priority="1">
     <xsl:call-template name="id.warning"/>
+        <!--Move the introduction before the ToC. -->
+        <xsl:apply-templates select="*[@role='introduction']"/>
         <xsl:call-template name="make.lots">
             <xsl:with-param name="toc.params" select="$toc.params"/>
             <xsl:with-param name="toc">
-        <xsl:apply-templates/>
+        <xsl:apply-templates select="*[not(@role = 'introduction')]"/>
         <xsl:call-template name="process.footnotes"/>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.