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 12:39:37 +0200
Hmm, it should work - at least it looks ok. What processor are you using? What happens if you do it in the following way:

<xsl:variable name="reg" select="/clients_ora/reg |
             document('other.xml')/clients_sqlsrv/reg |

<xsl:apply-templates select="$reg">
    <xsl:sort select="name"/>



Gustavo Moreira wrote:
Yes, but what if there are three or more documents?

This, for instance, would this work?:

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

I am using this:

         select="document('clients_sqlsrv.xml')//clients_sqlsrv/reg |
        <xsl:sort select="name"/>

...and it doesn't work because it brings first all the clients from the 1st
file (ordered), then it follows with all the clients from the 2nd file
What I want is all clients from all files ordered, no matter what file they
come from.

Gustavo Moreira

XSL-List info and archive:

Current Thread