Generating dynamic XML
Transform an XML document dynamically created by PHP to HTML
PHP can create XML documents on-the-fly (dynamically) and then use its XSLT extension to transform to HTML. This means that data retrieved from a database (in this case MySQL) can be formated as XML and via an XSL stylesheet, to be presented as HTML.
Things to know about XHTML
The future of HTML
HTML (HyperText Markup Language) was created to exchange information and is used by a vast amount of webpages, but now there is a new language for creating webpages. According to the W3C
"XHTML 1.0 (eXtensible HyperText Markup Language) is a reformulation of HTML 4.01 in XML, and combines the strength of HTML 4 with the power of XML.
...
XSLT in PHP 4
XSL transformations with Sablot
PHP 4.1.1 performs XSLT (Extensible Stylesheet Language (XSL) Transformations) differently than
version 4.0.6. This is a quick example of how to use some of the XSLT functions.
On UNIX, PHP should be configured with the --enable-xslt --with-xslt-sablot options. The Sablotron library
should be installed somewhere your compiler can find it. On Windows you would uncomment 'extension=php_xslt.dll.'
Function xslt_create -- Create a new XSLT processor: Create and return a new XSLT processor resource