首 页 ASP ASP.NET PHP JSP Ajax DIV+CSS JavaScript XML C#
MySQL MSSQL Access Oracle Linux Server 电脑技巧 网络安全 建站经验 其它

JSP结合XML+XSLT将输出转换为HTML格式

整理日期:2007年02月03日 【字体:


伊图教程网[www.etoow.com]
http://www.etoow.com/html/2007-02/1170481704.html

  这种做法虽然很标准,但是,如果你的容器一直使用tomcat,就完全不必了。

我们的做法是:


<%@taglib uri="xsl.jar" prefix="xsl" %>

  我们以Jakarta的XSL taglib附带的Apply.jsp为例,正好了解一下Jsp XML XSLT三者之间的关系:

  Apply.jsp


<%@taglib uri="xsl.jar" prefix="xsl" %>
<html>
<head>
<title>Employee List</title>
</head>
<body bgcolor="white">

<p>下面展示了Jsp的四种组合XML XSLT的方法:
<p>下面使用apply方法,将已经存在的employees.xml和employeeList.xsl结合在一起

<xsl:apply xml="/xml/employees.xml" xsl="/xml/employeeList.xsl"/>
<hr>


Tags:
JSP结合XML+XSLT将输出转换为HTML格式
'http://www.etoow.com/html/2007-02/1170481704.html
1
 
23
信息搜索
  
联系我们关于本站广告服务设为首页 收藏本站友情链接网站地图
Copyright © Etoow.com Inc. All Rights Reserved