Oops. If you move the sort element to the second template then I guess
you'd have to put it inside a for-each. Something like this:
<xsl:template match="/">
<xsl:apply-templates
select="document('clientes_ora.xml')/clientes_ora/registro |
document('clientes_sqlsrv.xml')/clientes_sqlsrv/registro">
</xsl:apply-templates>
</xsl:template>
<xsl:template match="registro">
<xsl:for-each select="*">
<xsl:sort select="nome"/>
<b><xsl:number value="position()"/>-<xsl:value-of select="nome"/></b>
<br/>
<xsl:value-of select="endereco"/>-<xsl:value-of select="cidade"/>
<br/><br/>
</xsl:for-each>
</xsl:template>
Gustavo,
Not sure if this would make a difference, but try moving the
sort element from the first template to the second.
Kevin
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list