[xsl] Problem sorting Elements when using the document() function

Subject: [xsl] Problem sorting Elements when using the document() function
From: "Dominic Lisi" <platapusman2000@xxxxxxxxxxx>
Date: Wed, 03 Dec 2003 14:51:47 +0000

i have this problem, when i try to sort elements which are comming from external files.
the situation is as follows:

i have a masterfile.xml which contains multiple tags like the following:

<taxpayer file="A004.xml" id="A004"/>

the file reference links to an XML file which contains all the individuals data for example:

<taxpayer id="A004">

i have no trouble getting the information out of the multiple Xml files using the following code:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:output indent="yes"/>

<xsl:template match="/">
           <xsl:apply-templates select="list"/>

<xsl:template match="taxpayer">

<xsl:variable name="taxfile">
<xsl:value-of select="@file"></xsl:value-of>
<xsl:apply-templates><xsl:sort data-type="text" select="/name"/></xsl:apply-templates>
<xsl:apply-templates select="document(concat($taxfile,''))//family"/>

just wondering if any1 has any pointers/solutions to this sorting of remote data :\


On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile

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

Current Thread