xslt: sort xml by child attribute and copy to new xml
-
Could someone kindly offer me the correct xslt code to sort by factoryNum and copy to new xml, retaining all elements and attributes from original XML? Thanks in advance '****************************** Here's my code but not working: '****************************** Dim xslt As String = "" & _ "" & _ "" & _ "" & _ "" & _ "" & _ "" & _ "" '**************************** Here's my source xml: '**************************** Lindeman's Bin 65 1998 6.99 5.99 71.50 Benziger Carneros 1997 10.99 9.50 114.00 Kendall Jackson Vintner's Reserve 1998 12.50 9.99 115.00 Duckpond Merit Selection 1996 13.99 11.99 143.50
-
Could someone kindly offer me the correct xslt code to sort by factoryNum and copy to new xml, retaining all elements and attributes from original XML? Thanks in advance '****************************** Here's my code but not working: '****************************** Dim xslt As String = "" & _ "" & _ "" & _ "" & _ "" & _ "" & _ "" & _ "" '**************************** Here's my source xml: '**************************** Lindeman's Bin 65 1998 6.99 5.99 71.50 Benziger Carneros 1997 10.99 9.50 114.00 Kendall Jackson Vintner's Reserve 1998 12.50 9.99 115.00 Duckpond Merit Selection 1996 13.99 11.99 143.50
Demanding help and insulting members who volunteer their expert assistance is pitiful! As far as your problem is concerned, I would place the result of the sorted nodes in a variable. Then, I would copy the sorted nodes in the variable.
"We make a living by what we get, we make a life by what we give." --Winston Churchill