Documentation / texi.xslon commit sequencer: changes in parse_insn_buffer() (2b71595)
   1<!-- texi.xsl:
   2     convert refsection elements into refsect elements that docbook2texi can
   3     understand -->
   4<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   5                version="1.0">
   6
   7<xsl:output method="xml"
   8            encoding="UTF-8"
   9            doctype-public="-//OASIS//DTD DocBook XML V4.5//EN"
  10            doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" />
  11
  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()" />
  16        </xsl:element>
  17</xsl:template>
  18
  19<!-- Copy all other nodes through. -->
  20<xsl:template match="node()|@*">
  21        <xsl:copy>
  22                <xsl:apply-templates select="@*|node()" />
  23        </xsl:copy>
  24</xsl:template>
  25
  26</xsl:stylesheet>