Re: [xsl] Outputting from more than one source

Subject: Re: [xsl] Outputting from more than one source
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Sun, 13 Oct 2002 00:54:18 +0200
Sorting works in the same way like without using document():

<xsl:apply-templates select="/clients_ora/reg | document('other.xml')/clients_sqlsrv/reg">
<xsl:sort select="name"/>



Gustavo Moreira wrote:
The document() function worked fine.
But I still have to sort them. The clients.

----- Original Message -----
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Saturday, October 12, 2002 4:18 PM
Subject: Re: [xsl] Outputting from more than one source

Gustavo Moreira wrote:

I wrote a java code that generates XML files with the same stucture from
different databases.

Which would be the best way to show the information from these files

Use the document() function: You can copy, apply templates, or whatever you want: <xsl:copy-of select="document('other.xml')/*"/> <xsl:apply-templates select="document('other.xml')/*"/>

If you generate the XML on the fly, check your
favorite XSLT processor whether it allows you
to hook in functionality to map URIs to some XML
source. For Java processors, write an URIResolver.


XSL-List info and archive:

Current Thread