Hi John, On 26 Jan 2004 at 21:42, John wrote:
> How can I show xml files which have been created in MS Word, in a > browser as ie Html. > > Is this posible and what would it take. The short answer to your question is "Yes, it's possible". As for what it would take, the answer is a little longer. First of all, you need to decide whether or not you'll expect your target audience to have latest-generation browsers (Netscape 7.x, IE 6, Mozilla 1.4 etc). If you go with the latest-generation-browser-only alternative, all you need is a suitable XSLT stylesheet attached to your XML file; to attach a stylesheet to an XML file you simply open it (manually or with PHP), insert a suitable processing instruction and re-save the file. For more information on XSLT, start here: http://www.dpawson.co.uk/xsl/sect1/intro.html . If you opt for the old-browsers-welcome alternative, PHP will come in really handy. You'll still need an XSLT stylesheet to transform your XML files and output whatever you like, but as most old (and not so old) browsers do not have a built-in XSLT processor (aka "engine"), you'll *also* need an external XSLT processor, a role that PHP can fill very well. Look up XSLT functions in the PHP manual (chapter CXIII in the function reference section) for more information on utilizing PHP as an XSLT processing engine. Either way, you'll need to learn some XSLT; how much will depend on your needs. Good luck, Erik