Commits

Shlomi Fish committed 746adc2

Still reproducing.

Comments (0)

Files changed (1)

shlomif-essays-5-xhtml-onechunk.xsl

     <xsl:import href="http://docbook.sourceforge.net/release/xsl-ns/current/xhtml-1_1/chunk.xsl" />
     <xsl:import href="http://docbook.sourceforge.net/release/xsl-ns/current/xhtml-1_1/onechunk.xsl" />
     <xsl:import href="http://docbook.sourceforge.net/release/xsl-ns/current/xhtml-1_1/docbook.xsl" />
+    <xsl:import href="http://docbook.sourceforge.net/release/xsl-ns/current/xhtml-1_1/component.xsl" />
+    <xsl:import href="http://docbook.sourceforge.net/release/xsl-ns/current/xhtml-1_1/html.xsl" />
 
 
     <!-- Avoid Generating a Table-of-Contents-->
 /usr/share/sgml/docbook/xsl-stylesheets-1.78.0/xhtml-1_1/component.xsl
 
 -->
+<!--
 <xsl:template match="db:article">
     <xsl:call-template name="id.warning"/>
 
         <xsl:call-template name="process.footnotes"/>
     </xsl:if>
 </xsl:template>
+-->
+
+<xsl:template match="db:article">
+  <xsl:call-template name="id.warning"/>
+
+  <xsl:element name="xhtml:div" namespace="http://www.w3.org/1999/xhtml">
+    <xsl:call-template name="common.html.attributes">
+      <xsl:with-param name="inherit" select="1"/>
+    </xsl:call-template>
+    <xsl:call-template name="id.attribute">
+      <xsl:with-param name="conditional" select="0"/>
+    </xsl:call-template>
+
+    <xsl:call-template name="article.titlepage"/>
+
+    <xsl:variable name="toc.params">
+      <xsl:call-template name="find.path.params">
+        <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
+      </xsl:call-template>
+    </xsl:variable>
+
+    <xsl:call-template name="make.lots">
+      <xsl:with-param name="toc.params" select="$toc.params"/>
+      <xsl:with-param name="toc">
+        <xsl:call-template name="component.toc">
+          <xsl:with-param name="toc.title.p" select="contains($toc.params, 'title')"/>
+        </xsl:call-template>
+      </xsl:with-param>
+    </xsl:call-template>
+
+    <xsl:apply-templates/>
+    <xsl:call-template name="process.footnotes"/>
+  </xsl:element>
+</xsl:template>
 
 </xsl:stylesheet>