下载此文档

XSLT 浏览器.doc


文档分类:IT计算机 | 页数:约4页 举报非法文档有奖
1/4
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/4 下载此文档
文档列表 文档介绍
XSLT 转换
Example study: How to transform XML into XHTML using XSLT.
实例学****如何通过XSLT把XML转换成XHTML。
The details of this example will be explained in the next chapter.
此实例的详细情况将在下一章中作详细说明。
Correct Style Sheet Declaration
正确的样式表声明
The root element that declares the document to be an XSL style sheet is <xsl:stylesheet> or <xsl:transform>.
将文件以XSL样式表进行声明的根元素(root element)是<xsl:stylesheet> 或<xsl:transform>。
Note: <xsl:stylesheet> and <xsl:transform> pletely synonymous and either can be used!
注意: <xsl:stylesheet> 和<xsl:transform>是完全同义的,任何一个都能被使用。
The correct way to declare an XSL style sheet according to the W3C XSLT mendation is:
声明根据W3C XSLT参考标准的XSL样式表的正确的途径是:
<xsl:stylesheet version=""
xmlns:xsl="9/XSL/Transform">
or:
或:
<xsl:transform version=""
xmlns:xsl="9/XSL/Transform">
To get access to the XSLT elements, attributes and features we must declare the XSLT namespace at the top of the document.
想要有权使用XSLT元素,我们必须在文件的顶端事先声明XSLT命名空间的属性和特征。
The xmlns:xsl="9/XSL/Transform" points to the official W3C XSLT namespace. If you use this namespace, you must also include the attribute version="".
xmlns:xsl="9/XSL/Transform
指出了官方W3C XSLT的命名空间(namespace)。如果你使用了这个命名空间,你也必须注明属性版本(version)=。
 
Start with a Raw XML Document
以XML源文件开始
We want to transform the following XML document ("") into XHTML:
让我们把下面的XML文件("")转换成XHTML吧。
<?xml version=

XSLT 浏览器 来自淘豆网www.taodocs.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数4
  • 收藏数0 收藏
  • 顶次数0
  • 上传人bjy0415
  • 文件大小0 KB
  • 时间2015-09-13