I have open sourced a simple "C" based utility under GPLv3 which will convert Wikimedia Foundation XML Wikipedia Dumps into a format which allows easy compliance with the GFDL for off-Wikipedia wikis. This utility allows the XML dumps to be parsed and [[en:<Article Title>]] or [http://en.wikipedia.org/wiki/<ArticleTitle>] tags to be inserted into the dump at the end of articles. Dumps converted with this tool point back into the source Wikipedia artcles and edit history when imported into MediaWiki.
The tools allows tags which use interwiki_sql links as well as simple URL addresses. This code is provided to the Wikipedia Community and other consumers of Wikipedia content with an easy way to insert GFDL compliant tags into master XML dumps and import them.
The source code, binaries, and makefile are available at:
ftp://www.wikigadugi.org/wiki/xml/gfdl-wikititle.tar.gz
Enjoy.
Jeff
wikitech-l@lists.wikimedia.org