number level="multiple" count="section | item" format="i. a. "
File: Data.xml
<?xml version="1.0"?>
<outline>
<section title="US coin denominations">
<item>cent</item>
<item>nickel</item>
<item>dime</item>
<item>quarter</item>
<item>half dollar</item>
<item>dollar</item>
</section>
</outline>
File: Transform.xslt
<?xml version="1.0" encoding="US-ASCII"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" />
<xsl:template match="outline">
<xsl:for-each select="section|//item">
<xsl:number level="multiple" count="section | item"
format="i. a. " />
<xsl:value-of select="@title | text()" />
<xsl:text> </xsl:text>
</xsl:for-each>
<xsl:text> </xsl:text>
</xsl:template>
</xsl:stylesheet>
Output:
i. US coin denominations
i. a. cent
i. b. nickel
i. c. dime
i. d. quarter
i. e. half dollar
i. f. dollar