<?xml version="1.0" encoding='ISO-8859-1'?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:param name='modo' />
<xsl:output encoding='iso-8859-1' />
<xsl:template match='raiz'>
<html>
<head><title>Ordenando 3</title></head>
<body>
Mode: <xsl:value-of select='$modo' />
<ol>
	<xsl:apply-templates select='cosa'>
		<xsl:with-param name='miModo' select='$modo' />
		<xsl:sort select='.' data-type='text'/>
	</xsl:apply-templates><br />
	</ol>
</body>
</html>
</xsl:template>

<xsl:template match='cosa'>
<xsl:param name='miModo' />
<li><xsl:choose><xsl:when test='$miModo = "verbose"'>Nombre: </xsl:when></xsl:choose>
<xsl:value-of select='.'/></li>
</xsl:template>

</xsl:stylesheet>
