[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Newbie question on XSL transformations: multiple
Rob Newman wrote:
Then what is missing is the document(@href) function in your original code in the apply templates.
This is quite different from your example input, where you showed one pfarr element with multiple pfstring children, each siblings to one another. I understand now, that instead of this: <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> .... with one additional change: all names are now always equal to 'dlt', right? I want this to be output thus: which, to me, looks quite different from your original output, where you kept the original siblings of params together.
Do you mean that siblings can occur, and that you want the pfarr that has highest available 'dlt' value to be output as first datalogger element? Or is there always only one dlt? What do you mean with "beyond dlt values"? It helps if you show the input as it really is, because it seems contradictory to say "Each one has a pfstring element that has an id='dlt' " and "Once we get beyond the dlt values", because they are always there. Please clarify the following: 1. The order of the datalogger elements, based on some (cumulative?) value of their children 2. The order of the param elements inside each datalogger, if there are more than one (are there?) 3. Whether additional param elements influence the order of the datalogger, other then what you define by (1) 4. The exact content of your data (but keep it brief) and an example of the exact output, based on that very content. Make sure it clarifies the other points above, and the structure. -- Abel
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|