Use php+xslt
1 on the windows platform. Go to http://www.php.net to download php 4.0.6
2. Unzip php-4.0.6-Win32.zip to c:php under
3. Configure php
3 on the web server. Copy the following four files in the dlls directory to
expat.dll
sablot.dll
xmlparser.dll
xmltok.dll
4. Modify php.ini
Modify extension_dir to point to the correct extension directory
extension_dir = c:/php/extensions
Then find the following line
;extension =php_sablot.dll
modified to:
extension=php_sablot.dll
If php is configured in cgi mode, you do not need to restart the web server, otherwise you may need to restart the web server
5. Let’s test it with an example
test.xml
============================
< ;?xml version="1.0"?>
This is the first article.
< /articles>
test.xsl
============================
< ;/body>
test.php
====== =====================
$parser=xslt_create();
xslt_run($parser,'test.xsl ','test.xml');
print xslt_fetch_result($parser);
xslt_free($parser);
?>
Finally, this parser does not support GB2312 . :(