]> granicus.if.org Git - docbook-dsssl/commitdiff
Move root.elements variable to the top level so that other stylesheets (e.g, slides...
authorNorman Walsh <ndw@nwalsh.com>
Tue, 19 Aug 2003 18:46:57 +0000 (18:46 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Tue, 19 Aug 2003 18:46:57 +0000 (18:46 +0000)
xsl/fo/docbook.xsl

index f12f3e6b2c9b6a8e56bcca864f564a302c88002d..e6eb35f6fd578db722942eea45bcd335e22725ee 100644 (file)
   </fo:block>
 </xsl:template>
 
-<xsl:template match="/">
+<!-- Update this list if new root elements supported -->
+<xsl:variable name="root.elements" select="' appendix article bibliography book chapter colophon dedication glossary index part preface refentry reference sect1 section set setindex '"/>
 
+<xsl:template match="/">
   <xsl:variable name="document.element" select="*[1]"/>
 
-  <!-- Update this list if new root elements supported -->
-  <xsl:variable name="root.elements" select="' appendix article bibliography book chapter colophon dedication glossary index part preface refentry reference sect1 section set setindex '"/>
-
   <xsl:if test="not(contains( $root.elements, concat(' ', local-name($document.element), ' ')))">
       <xsl:message terminate="yes">
 ERROR: Document root element for FO output