[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
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
[xsl] sorting information from multiple files
Subject: [xsl] sorting information from multiple files From: "james walker" <jameswalkerandy@xxxxxxxxxxx> Date: Thu, 15 Jan 2004 14:56:19 +0000 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Re: replacing parts of a stri, Dimitre Novatchev | Thread | Re: [xsl] sorting information from , David Carlisle |
RE: [xsl] replacing parts of a stri, Dimitre Novatchev | Date | RE: [xsl] sorting information from , John Meyer |
Month |
Keywords