xquery to process draftlaws