Subject: Re: [xsl] Newbie question on XSL transformations: multiple sorts on element attributes From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Wed, 07 Feb 2007 00:01:23 +0100 |
I left some information out. I am actually importing data from 4 different XML files so I created a summary file (summary.xml) that consists of a parent element called 'sources' and child elements named 'source' that locally reference the URLs of all the XML files I need.
Almost! I have a whole series of pfarr elements. Each one has a pfstring element that has an id='dlt' and and value. Example:
<pfstring id='dlt'>20</pfstring>
<pfarr name="dls"> <pfarr name="abcde"> <pfstring name="aa">0.010</pfstring> <pfstring name="br24">23266128.0</pfstring> <pfstring name="dlt">30</pfstring>
it is more like this: <pfarr name="dls"> <pfarr name="abcde"> <pfstring name="aa">0.010</pfstring> </pfarr> <pfarr name="ef"> <pfstring name="br24">23266128.0</pfstring> </pfarr> <pfarr name="ghi"> <pfstring name="dlt">30</pfstring> ....
I want this to be output thus:
<datalogger name="B"> <param id="dlt">80</param> </datalogger>
<datalogger name="C"> <param id="dlt">50</param> </datalogger>
To be verbose: I want to sort them so that the first datalogger element in the XML output is the one with the highest dlt. This is then followed by those with high dlt values. Once we get beyond the dlt values, the datalogger elements are ordered by their name. All dataloggers have a param element with an id of 'dlt' and an associated value.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Newbie question on XSL tr, Rob Newman | Thread | Re: [xsl] Newbie question on XSL tr, Rob Newman |
RE: [xsl] Dynamically calling a tem, Michael Kay | Date | [xsl] for-each select="position()", John Cavalieri |
Month |