ci: run `make sparse` as part of the GitHub workflow
[git.git] / Documentation / texi.xsl
blob0f8ff07ecaa370440eb3d3f0bcda686b7a986c50
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">
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" />
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>
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>
26 </xsl:stylesheet>