.. / download
<?xml version="1.0" encoding="UTF-8"?>

<!-- ********************************************************************

     This file is part of the S1000D XSL stylesheet distribution.
     
     Copyright (C) 2010-2011 Smart Avionics Ltd.
     
     See ../COPYING for copyright details and other information.

     ******************************************************************** -->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:d="http://docbook.org/ns/docbook"
  xmlns:fo="http://www.w3.org/1999/XSL/Format"
  xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0"
  xmlns:rx="http://www.renderx.com/XSL/Extensions" version="1.0">
  
  <!-- Lables ********************************************************************** -->

  <xsl:template match="d:figure|d:table|d:example" mode="label.markup">
    <xsl:choose>
      <xsl:when test="@label">
	<xsl:value-of select="@label"/>
      </xsl:when>
      <xsl:otherwise>
	<xsl:number format="1" from="d:chapter|d:appendix" level="any"/>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>

</xsl:stylesheet>

gopher://khzae.net/0/s1000d/S1000D-XSL-Stylesheets/src/dbtofo/labels.xsl
Styles: Light Dark Classic