Adds range attribute to resource nodes