[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Outputting from more than one source

Subject: RE: Outputting from more than one source
From: "Kevin Collins" <kcollins@xxxxxxx>
Date: Mon, 14 Oct 2002 06:29:20 -0400
kevin collins
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.