|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Outputting from more than one source
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








