2 convert refsection elements into refsect elements that docbook2texi can
4 <xsl:stylesheet xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
7 <xsl:output method=
"xml"
9 doctype-public=
"-//OASIS//DTD DocBook XML V4.5//EN"
10 doctype-system=
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" />
12 <xsl:template match=
"//refsection">
13 <xsl:variable name=
"element">refsect
<xsl:value-of select=
"count(ancestor-or-self::refsection)" /></xsl:variable>
14 <xsl:element name=
"{$element}">
15 <xsl:apply-templates select=
"@*|node()" />
19 <!-- Copy all other nodes through. -->
20 <xsl:template match=
"node()|@*">
22 <xsl:apply-templates select=
"@*|node()" />