A crude attempt in turning my "scribble" rules into proper XML rules.