blob: 7eac631092de4a76a5d0e8e3900d322c8cb203b5 [file] [log] [blame]
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: namedtemplate12 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 11.6 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test use of passed-in value in an AVT.
Derived from example code at end of 11.6 -->
<xsl:template match="doc">
<out>
<xsl:apply-templates/>
</out>
</xsl:template>
<xsl:template match="OL">
<xsl:text>OL!</xsl:text>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="LI">
<xsl:call-template name="numbered-block">
<xsl:with-param name="format">A. </xsl:with-param>
</xsl:call-template>
</xsl:template>
<xsl:template match="OL/LI">
<xsl:call-template name="numbered-block">
<xsl:with-param name="format">a. </xsl:with-param>
</xsl:call-template>
</xsl:template>
<xsl:template name="numbered-block">
<xsl:param name="format">1. </xsl:param>
<xsl:number format="{$format}"/>
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>