<?xml version="1.0" encoding="utf-8"?>
<!--
  vim: sts=2 sw=2 et
  -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method='text'/>

<xsl:template match="/">

  <xsl:for-each select='//section'>
    <xsl:value-of select='@id'/><xsl:text>
</xsl:text>
  </xsl:for-each>

  <xsl:for-each select='//anchor'>
    <xsl:value-of select='@id'/><xsl:text>
</xsl:text>
  </xsl:for-each>

  <xsl:for-each select='//simpara'>
    <xsl:value-of select='@id'/><xsl:text>
</xsl:text>
  </xsl:for-each>

  <xsl:for-each select='//figure'>
    <xsl:value-of select='@id'/><xsl:text>
</xsl:text>
  </xsl:for-each>

  <xsl:for-each select='//informalfigure'>
    <xsl:value-of select='@id'/><xsl:text>
</xsl:text>
  </xsl:for-each>

  <xsl:for-each select='//chapter'>
    <xsl:if test='substring(@id, 1, 1) != "_"'>
      <xsl:value-of select='@id'/><xsl:text>
</xsl:text>
    </xsl:if>
  </xsl:for-each>

</xsl:template>

</xsl:stylesheet>
