<?xml version="1.0"?> 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

  <!-- FileName: str21 -->
  <!-- Document: http://www.w3.org/TR/xpath -->
  <!-- DocVersion: 19990922 -->
  <!-- Section: 4.2 String Functions -->
  <!-- Purpose: Test of 'substring()' function. -->

  <xsl:template match="doc">
    <out>
      <xsl:value-of select='substring("12345", -1 div 0, 1 div 0)'/>
    </out>
  </xsl:template>
 
</xsl:stylesheet>
