Stephan Schmidt Sr. Developer, PHP Application Tools
The session will demonstrate how application logic may be embedded in XML, while PHP functions as interpreter of this "higher" XML-based language. This technique enables programmers to use roxen-style tags instead of typing several lines of PHP code. This eases up the task of building complex applications as the XML application logic is easier to read and maintain, while the actual PHP code is split into small logical modules. The use of XML as a "programming language" provides new developers a shallow learning curve, while still enabling them to use a lot of features that would have been harder to handle in PHP.
Furthermore this technique enforces the separation of content/logic and layout, as the XML documents are being transformed to any output format, like HTML, WML or PDF. By doing this, it is also possible to do XML transformations in PHP without the use of an XSLT processor or PHP's XSLT functions, although XSTL and XML Transformations may work hand in hand when
needed.
Examples of the session include handling database queries, webservice calls as well as image generation or file manipulation. Furthermore the session compares the most popular frameworks for XML transformations and roxen-style tags in PHP, PEAR's XML_Transformer and patXMLRenderer.
|