The XML Stylesheet Language for Transformations (XSLT) is used to transform XML documents containing information formatted in a document type other than Hypertext Markup Language (HTML) into Web browser-friendly HTML documents, according to the rules given in an XSLT stylesheet. Depending on the version of PHP you are using and the set of extensions that has been compiled with your PHP binary, you may have one or several tools available to you to transform XML documents using XSLT stylesheets.
SimpleXML, also discussed in this chapter, provides a quick and dirtyyet powerfulinterface to XML data. Using SimpleXML, you access elements in XML documents as properties of SimpleXML objects and can manipulate those elements, their values, and their attributes the same as you would other PHP elements or objects. |