hello all
small headache here, i,mm trying to create xsl stylesheet when the page.php is accessed so as soon as you click page 2 it will create an xsl stylesheet in xslstyle.xsl.
i have tried it using the fwrite but its a pain and doesnt do brackets or anythine like that errors everywhere.
this is just to create the first line:
<?php
$handle=fopen("files/2.xml","w");
fwrite($handle,"<?xml version=");
fwrite($handle,"1.0");
fwrite($handle,"encoding= ");
fwrite($handle,"ISO-8859-1");
fwrite($handle,"?>\n");
fflush($handle);
fclose($handle);
?>
it produces:
<?xml version=1.0encoding= ISO-8859-1?>
not <?xml version="1.0" encoding="ISO-8859-1"?>
i had a similar problem with creating the xml file but i found this in which creates the xml decleration
code
$newxml = '<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="files/wes_ica.xsl"?>';
any ideas would be great on how to create this would be great
thanks
![]()



sl="http://www.w3.org/1999/XSL/Transform">

Bookmarks