yes i know but if u see in my code i can't put what u wrote somewhere
there:
my xsl file is:
---------------------
<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl="
http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="/">
<table cellSpacing="0" cellPadding="1" width="100%" bgColor="#f4f4f4"
border="0" height="100%">
<tbody>
<tr>
<td vAlign="top" colSpan="2" height="6"><img height="1"
src="images/white.gif" width="1"></img></td>
</tr>
<xsl:for-each select="result/categorylist/category">
<xsl:sort select="nodename"/>
<tr>
<td vAlign="top"><img src="images/d_tree_close.gif"></img></td>
<td>
<a class="nav"
HREF="
http://tsirmans/babylonfiles/links.php?nodeid={nodeid}&nodenam
e={nodename}">
<xsl:value-of select="nodename"/> (<xsl:value-of
select="sitecount"/>)</a>
</td>
</tr>
<tr>
<td colSpan="2"><img height="1" src="images/line.gif"
width="100%"></img></td>
</tr>
</xsl:for-each>
<tr>
<td colSpan="2"><img height="10" src="images/white.gif"
width="1"></img></td>
</tr>
</tbody>
</table>
</xsl:template>
</xsl:stylesheet>
------------------
and the php file is:
-------------------
<?php
$sql = mysql_query("
SELECT treeid
FROM tree_access
WHERE treename = '$treename'
");
$treeid = mysql_fetch_row($sql);
$xmlFile =
"
http://localhost:6789/no_tree_dbgetchildrenlist?password=babylon&treeid
=".$treeid[0]."&nodeid=-1";
$xslFile = "data_get_tree_left.xsl";
// Create a new processor handle
$xslt = xslt_create() or die("Can't create XSLT handle!");
// Open the XML and XSL files
$xh = fopen($xmlFile, "r") or die("Can't open XML file");
$sh = fopen($xslFile, "r") or die("Can't open XSL file");
// Read in the XML and XSL contents
$xmlContent = fread($xh, 80000);
$xslContent = fread($sh, filesize($xslFile));
$args = array("/_xml" => iconv("ISO-8859-7","UTF-8",$xmlContent),
"/_xsl"=> iconv("ISO-8859-7","UTF-8",$xslContent) );
$data = xslt_process($xslt, "arg:/_xml", "arg:/_xsl", NULL, $args);
echo iconv("UTF-8","ISO-8859-7",$data);
xslt_free($xslt);
?>