xsl-list
[Top] [All Lists]

sorting information from multiple files

2004-01-15 07:56:19
If i have 4 xml files which i am selectively pulling information from, is there anyway i can sort this selective information in ascending order. E.g. i have 4 for-each loops which gather specific info from each file:
<xsl:for-each select="document(http:..doc1..)"></xsl:for-each>
<xsl:for-each select="document(http:..doc2..)"></xsl:for-each>
<xsl:for-each select="document(http:..doc3..)"></xsl:for-each>
<xsl:for-each select="document(http:..doc4..)"></xsl:for-each>

if the info gathered was letters of the alphabet and doc1 contained "xyz", doc2 contained "abc", doc3 contained "hut" and doc4 contained "jwr", the output using t he foreach loops above would be:
x
y
z
a
b
c
h
u
t
j
w
r
however i wanted the result
a
b
c
h
j
r
t
u
w
x
y
z
is this possible?

_________________________________________________________________
Tired of 56k? Get a FREE BT Broadband connection http://www.msn.co.uk/specials/btbroadband


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



<Prev in Thread] Current Thread [Next in Thread>