php与XML、XSLT、Mysql的结合运用,代码篇(2)

2008-02-23 06:26:37来源:互联网 阅读 ()

新老客户大回馈,云服务器低至5折


</head>
<body>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tbody>
<tr>
<td width="21%" align="center" bgcolor="#C0C0C0">代码</td>
<td width="50%" align="center" bgcolor="#C0C0C0">企业名称</td>
<td width="29%" align="center" bgcolor="#C0C0C0">电话</td>
</tr>

<xsl:for-each select="root/result/row">

<tr>
<td width="21%"> <xsl:value-of select="nsrnm" /></td>
<td width="50%"> <xsl:value-of select="qymc" /></td>
<td width="29%"> <xsl:value-of select="qydh" /></td>
</tr>


</xsl:for-each>


</tbody>


</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>


*/
$htmlFile="browesData.html" ;
$htmlStr = readXsl($htmlFile); //将xslt格式的HTML文档读取到变量中
echo getHtml($data, $htmlStr) ;

//程序结束

?>

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:在PHP中进行GB2312与UTF-8的互换

下一篇:用PHP读取和编写XML DOM