Hi Petr, On Fri, 2008-04-04 at 00:29 +0200, Petr Machata wrote: > While I agree xslt is the proper way, I also immediately know the sed > syntax. Nice! That works like a charm. I even changed a couple of files to have the tag embedded in other tags on the same line and split over several lines to test it out. All looks fine: http://sourceware.org/frysk/manpages. Committed as follows: frysk-common/ChangeLog 2008-04-04 Mark Wielaard Petr Machata * frysk.xml: Split refpurpose tag over multiple lines. * manpages.sh (refpurposegrep): New. (suffix): Use refpurposegrep. frysk-core/frysk/bindir/ChangeLog 2008-04-04 Mark Wielaard * fdebuginfo.xml: Put refpurpose tag on multiple lines. * fexe.xml: Likewise. * fmaps.xml: Likewise. frysk-core/frysk/pkglibdir/ChangeLog 2008-04-04 Mark Wielaard * funit-exit.xml: Put refpurpose tag on multiple lines. * fparser.xml: Likewise. frysk-sys/frysk/pkglibdir/ChangeLog 2008-04-04 Mark Wielaard * funit-procmask.xml: Put refpurpose tag on multiple lines. frysk-top/ChangeLog 2008-04-04 Mark Wielaard * Makefile.am (manpages): Clarify error message. Cheers, Mark