This may be as easy as:
xidel -q page.html -e subtitle:=//h2,title:=//h1
Something like the following (with several "-e" params) would also work, but like the previous code it will first group all subtitles and then all titles on the page, which is probably not what you want...
xidel -q page.html -e "<div><h2>{subtitle:=.}</h2></div>+" -e "<div><h1>{title:=.}</h1></div>+"
AFAIK, in your case there's no ordering feature in Xidel. But what you CAN do is write a script wherein you save the values as env. variables with the xidel --output-format cmd (if Windows) and then (in the right order) echo/process those variables/values.
Dirkk has given a great tip (to not group), with that your line could look something like this:
xidel -q page.html --xquery "for $i in //div return (concat('sub:=',$i/h2), concat('title:=',$i/h1))"