Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 18 lines (14 sloc) 0.509 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  version="1.0">
 <xsl:output method="text"/>

  <xsl:template match="sect1|sect2|sect3">
    <xsl:if test="not(@id)">
        <xsl:message>No identifier in chapter '<xsl:value-of select="ancestor::chapter/@id"/>', section '<xsl:value-of select="title"/>'
        </xsl:message>
    </xsl:if>
      <xsl:apply-templates/>
  </xsl:template>

  <xsl:template match="*|@*|text()">
    <xsl:apply-templates/>
  </xsl:template>

</xsl:stylesheet>
Something went wrong with that request. Please try again.