pulled the processing algorithm from the vxml spec.