Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- php
- //
- load the stylesheet file.
- $
- xslDoc
- = new
- DOMDocument
- ();
- $
- xslDoc
- -
- >
- load
- ("sommaire.xsl");
- // load the
- xml file
- to transform
- $
- xmlDoc
- = new
- DOMDocument
- ();
- $
- xmlDoc
- -
- >
- load
- ("chapitre.xml
- ");
- //
- create the XSLT processor
- $
- proc = new
- XSLTProcessor
- ();
- $
- proc
- -
- >
- importStylesheet
- ($
- xslDoc
- );
- //
- transform and display result
- echo
- $proc
- -
- >
- transformToXML
- ($
- xmlDoc
- );
- ?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement