Hi there,
I am planning to build a cms using xml and php to transfer it to the web. Have I got the process below right ?
- Form with various text inputs
- Data taken from form with xml attrtibute e.g. title and sent to my db as xml fragments e.g. <title>news headline here</title>
- Each record has the dtd and xsl noted with it
- Web visitor finds news.php
- News.php extracts xml data from db, uses the xsl and dtd to output xhtml to browser.
Could you let me know if this is correct ?
If so, where would I enter browser sniffing code to create different styles for different browsers ? (or have I missed the point of xsl).
Does the file news.php actually write the xsl and xml file to the screen – what do I need to include in this file ?
Thanks for any help in advance,
Rich