1 <?xml version="1.0"?> 2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 3 4 <!-- CaseName: numbering63 --> 5 <!-- Author: David Marston --> 6 <!-- Purpose: Count all levels of changes and number by level, level=single. --> 7 <!-- SpecCitation: Rec="XSLT" Version="1.0" type="OASISptr1" place="id(number)/ulist[2]/item[1]/p[1]/text()[5]" --> 8 <!-- SpecCitation: Rec="XSLT" Version="1.0" type="OASISptr1" place="id(number)/ulist[1]/item[2]/p[1]/text()[1]" --> 9 <!-- SpecCitation: Rec="XSLT" Version="1.0" type="OASISptr1" place="id(number)/ulist[1]/item[3]/p[1]/text()[1]" --> 10 <!-- SpecCitation: Rec="XSLT" Version="1.0" type="OASISptr1" place="id(convert)/ulist[1]/item[1]/p[1]/text()[1]" --> 11 <!-- Scenario: operation="standard-XML" --> 12 13 <xsl:template match="doc"> 14 <out><xsl:apply-templates/></out> 15 </xsl:template> 16 17 <xsl:template match="title"> 18 <xsl:number level="single" from="a" count="a|b|c|d|e" format="1"/><xsl:text>: </xsl:text><xsl:value-of select="."/><xsl:text> 19 </xsl:text> 20 </xsl:template> 21 22 <xsl:template match="text()"><!-- To suppress empty lines --><xsl:apply-templates/></xsl:template> 23 24 </xsl:stylesheet>