if (x["section"]) && t.name != "reference"
            ret << "#{x.to_xml} has a section attribute, but #{x['target']} " \
                   "points to a #{t.name}"
          end