Using PHP 5s XSL Extension to Perform XSL Transformations
By Tony Marston2005-04-19
XML File Contents
Here is an explanation of the contents of the sample XML file:
| <?xml version="1.0"> | This is the XML declaration which identifies the XML version. |
| <xample.person> | This is the root node. It can contain any text, even 'root', but in this case it is constructed from the database name and the table name. There must be 1, and only 1, root node in a document. |
| <person> | This identifies a node which was constructed from the contents of a database table. In this example the node name is the same as the table name. Note that there are several occurrences of this node in the XML file. |
| <person_id> <first_name> | This identifies a node which was named after a column from a row in the database table. The text between the opening and closing tags is the value from the database. |
| <actbar> | This node is the parent of a series of button nodes. |
| <button> | This identifies a a child of the <actbar> node. Each button has a text node and an attribute with the name "id". |
Tutorial Pages:
» Intended Audience
» Prerequisites
» A Sample XML File
» XML File Contents
» A Sample XSL File
» XSL File Contents
» XSL Include Files
» Performing the XSL Transformation
» Sample Output
» References
