XSLT
来源:互联网 发布:黑猩猩智商知乎 编辑:程序博客网 时间:2024/05/22 06:22
A transformation expressed in XSLT describes rules for transforming a source tree into a result tree. The transformation is achieved by associating patterns with templates. A pattern is matched against elements in the source tree. A template is instantiated to create part of the result tree. The result tree is separate from the source tree. The structure of the result tree can be completely different from the structure of the source tree. In constructing the result tree, elements from the source tree can be filtered and reordered, and arbitrary structure can be added.
A transformation expressed in XSLT is called a stylesheet. This is because, in the case when XSLT is transforming into the XSL formatting vocabulary, the transformation functions as a stylesheet.
A stylesheet contains a set of template rules. A template rule has two parts: a pattern which is matched against nodes in the source tree and a template which can be instantiated to form part of the result tree. This allows a stylesheet to be applicable to a wide class of documents that have similar source tree structures.
A template is instantiated for a particular source element to create part of the result tree. A template can contain elements that specify literal result element structure. A template can also contain elements from the XSLT namespace that are instructions for creating result tree fragments. When a template is instantiated, each instruction is executed and replaced by the result tree fragment that it creates. Instructions can select and process descendant source elements. Processing a descendant element creates a result tree fragment by finding the applicable template rule and instantiating its template. Note that elements are only processed when they have been selected by the execution of an instruction. The result tree is constructed by finding the template rule for the root node and instantiating its template.
- XSLT
- XSLT
- XSLT
- XSLT
- XSLT
- XSLT
- xslt
- XSLT
- XSLT
- xslt
- XSLT
- xslt
- xslt
- xslt
- XSLT
- XSLT
- XSLT
- XSLT
- linux vi使用小结
- Linux 的进程组、会话、守护进程
- 2014------百度面试算法
- jboss安装、环境变量配置、部署
- comments of word2vec code
- XSLT
- kernel networking两个重要结构体
- Upload_File 上传的用法和判断上传类型的说明
- 左侧数据移到右侧 select 实现法
- 2014 --人人网笔试算法汇总
- 2013.9.10兰亭集势 (技术笔试题) 部分题总结
- VS2012 开发SharePoint 2013 声明式workflow action(activity)之 HelloWorld
- 票据承兑
- How to add custom property in custom webpart using VS 2012