I’m writing a book in an XML format derived from DocBook, and I often have to deal with repeated lines of XML with incremented numbers:
<callout arearefs="co1">Here be dragons.</callout>