From: Peter Hickman Date: 2007-07-11T18:06:59+09:00 Subject: Re: Creating a language -- HTML + a few special tags This is classic XSLT. For example given this data file: foobar.xml ======= And this xslt... foobar.xsl =======

and we run it like this peter@radish:~$ xsltproc foobar.xsl foobar.xml You can see how to add all the new elements you want. For this problem the correct tool is XSLT.