RE: [xsl] Outputting from more than one source

Subject: RE: [xsl] Outputting from more than one source
From: "Kevin Collins" <kcollins@xxxxxxx>
Date: Mon, 14 Oct 2002 05:41:01 -0400
Gustavo,

Not sure if this would make a difference, but try moving the sort
element from the first template to the second. 

Kevin  

> --clientes.xsl-----------------------------------
> <?xml version="1.0"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> version="1.0">
> 
>  <xsl:template match="/">
>        <xsl:apply-templates 
> select="document('clientes_ora.xml')/clientes_ora/registro |
> 
> document('clientes_sqlsrv.xml')/clientes_sqlsrv/registro">
>             <xsl:sort select="nome"/>
>       </xsl:apply-templates>
>  </xsl:template>
> 
>  <xsl:template match="*">
>     <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:template>
> 
> </xsl:stylesheet>
> 
> --Results: -------------------------------
> 
> 1- 3P CONSTRUÇÕES E INCORPORAÇÕES LTDA.
> RUA DOMINGOS DE ALMEIDA, 3670 - 6 ANDAR- URUGUAIANA
> 
> 2- 3R INFORMÁTICA LTDA
> AV. PROTÁSIO ALVES, 3240 - LOJA 07 E 08- PORTO ALEGRE
> 
> 3- A & L REPRESENTAÇÕES E SERVIÇOS LTDA.
> RUA EVARISTO DA VEIGA, 151- PORTO ALEGRE
> 
> 4- A ADVENTUS ELETRICISTAS LTDA
> TRAVESSA SERAFIM TERRA, 207- PORTO ALEGRE
> 
> 5- A FURNINHA HOTEIS E TURISMO LTDA
> RUA JOAQUIM PORTO, 281- TORRES
> 
> ... [plus 3911 clients - the next two are the last from 
> clientes_ora.xml]... ... [note that in 3919 it starts to 
> bring the records from clientes_sqlsrv.xml]...
> 
> 3917- ZONTA UNIFORMES E PECAS LTDA
> RUA PALMEIRINHAS, 330- CRICIÚMA
> 
> 3918- ZORTEA CONSTRUCOES LTDA
> RUA CEL. FARRAPOS, 1141 - Tlx 492479- CAMPOS NOVOS
> 
> 3919 - A.ARAUJO ENGENHARIA E MONTAGENS
> RUA MARIA URUTAITI, 441- ESTADO DE SÃO PAULO
> 
> 3920 - A.C.DA CUNHA CONSTR.E INCORP.LTDA
> RUA DOMINGOS DE ALMEIDA, 1541- URUGUAIANA
> 
> 3921 - A.J. SILVA E CERCATO LTDA
> AV. SALVADOR LEAO, 402- PORTO ALEGRE
> 
> ...[plus the rest of the clients from clientes_sqlsrv.xml]...


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread