From: Noam P. <npo...@us...> - 2014-10-09 20:52:23
|
On Tue, Oct 7, 2014 at 6:21 PM, Jamie Jackson <jam...@gm...> wrote: > Can XMLStarlet update XML with sorted elements? (Or is some other utility > more appropriate?) XSLT can sort elements: http://www.w3.org/TR/xslt#sorting XMLStarlet won't help you much here because the ed(it) command isn't based on XSLT, and it isn't really practical to edit files with the sel(ect) command. You can use the tr(ansform) command to apply XSLT, though that isn't different from using xsltproc. |