Integrate xml and xsl using PHP


The previous example has an important disadvantage: you need to change xml. It is not possible in many cases. Fortunately we can use PHP to do the same.
PHP 5 contains a special object called XSLTProcessor.

See the following example:


Task: use this xml and an xsl you prepared previously and merge them using php class (i.e. create php that will read xml and xsl file and process accordingly to the previous example. Notice that you will have to execute PHP using server (for TTU: using elrond).

Comment: the result should be similar to the first excerise result