/ docs / src / links.xslt
links.xslt
 1  <?xml version="1.0" encoding="utf-8"?>
 2  <!--
 3    vim: sts=2 sw=2 et
 4    -->
 5  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 6  <xsl:output method='text'/>
 7  
 8  <xsl:template match="/">
 9  
10    <xsl:for-each select='//section'>
11      <xsl:value-of select='@id'/><xsl:text>
12  </xsl:text>
13    </xsl:for-each>
14  
15    <xsl:for-each select='//anchor'>
16      <xsl:value-of select='@id'/><xsl:text>
17  </xsl:text>
18    </xsl:for-each>
19  
20    <xsl:for-each select='//simpara'>
21      <xsl:value-of select='@id'/><xsl:text>
22  </xsl:text>
23    </xsl:for-each>
24  
25    <xsl:for-each select='//figure'>
26      <xsl:value-of select='@id'/><xsl:text>
27  </xsl:text>
28    </xsl:for-each>
29  
30    <xsl:for-each select='//informalfigure'>
31      <xsl:value-of select='@id'/><xsl:text>
32  </xsl:text>
33    </xsl:for-each>
34  
35    <xsl:for-each select='//chapter'>
36      <xsl:if test='substring(@id, 1, 1) != "_"'>
37        <xsl:value-of select='@id'/><xsl:text>
38  </xsl:text>
39      </xsl:if>
40    </xsl:for-each>
41  
42  </xsl:template>
43  
44  </xsl:stylesheet>