blob: 9ed10417900cb6de57c9919cb5e526143a8aa64d (
plain)
1
2
3
4
5
6
|
#!/bin/sh
./xmlstarlet ed \
-u /xml/table/rec/@id -x .+1 \
-a /xml/table -t elem -n highest-record -v '' \
-u '$xstar:prev' -x '/xml/table/rec[numField=math:max(../rec/numField)]' \
xml/table.xml
|