XSLT Ordering Output off an attribute

AbDuLmAtEeNkHaN

New Member
I have the following example XML:\[code\]<Table> <Row Position="0" Name="FName" /> <Row Position="1" Name="LName" /> <Row Position="2" Name="Email" /> <Row Position="3" Name="Phone" /> <Row Position="4" Name="Address" /></Table>\[/code\]I want to be able to read this into an output of:\[code\]Row: FNameRow: LNameRow: EmailRow: PhoneRow: Address\[/code\]The ordering for this list however should be based off the \[code\]Position\[/code\] attribute of the row, so that the output order can be changed by simply changing the number ordering.I guess this will take a variable or two to complete but not entirely sure on the execution.CheersExample:Input\[code\]<Table> <Row Position="0" Name="FName" /> <Row Position="1" Name="LName" /> <Row Position="4" Name="Email" /> <Row Position="2" Name="Phone" /> <Row Position="3" Name="Address" /></Table>\[/code\]Output\[code\]Row: FNameRow: LNameRow: PhoneRow: AddressRow: Email\[/code\]
 
Back
Top