title: Track input file as well as position while parsing in boost spirit qi?
body: <p>I had a look at the <a href="https://stackoverflow.com/questions/3146372/how-can-i-track-my-input-position-with-multiple-inputs-using-boostspiritqi"> question </a> but however it does not quite answer my problem.</p>
  
  <p>I am trying to write a grammar to parse XML using Spirit Qi and I for every line I want to append the filename as well as the line number in that file. So if there are entity references and they are replaced by the new file in the original file, I still want to know from where they came. In order to do that I needed to know how can one maintain the position as well as the file name while parsing. </p>
  
  <p>I don't want to use the Spirit classic else <a href="http://boost-spirit.com/home/articles/qi-example/tracking-the-input-position-while-parsing/" rel="nofollow noreferrer">this</a> could be a good solution. But I need a way to do the same without using Spirit classic and want to use only Qi if possible.</p>
  
  <p>Any suggestions?</p>