Fix extension ID extraction using xmlstarlet to support attribute em:id