什么是 XSLT 结果树 [英] What are XSLT Result Trees

查看:28
本文介绍了什么是 XSLT 结果树的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在阅读一本关于 XSLT 2.0 的书.我在 XSLT 结果树的章节.老实说,我有点不明白.什么是结果树?它是干什么用的?它为什么如此重要?

I am reading a book on XSLT 2.0. I am on the chapter of XSLT Result Trees. Frankly, i don't understand it a bit. What are result trees? What is it used for? Why is it important?

推荐答案

来自 W3C XSLT 2.0 规范:

"[定义:术语结果树是用于指代任何构造的树通过样式表中的说明.一种结果树要么是最终结果树或临时树.]

"[Definition: The term result tree is used to refer to any tree constructed by instructions in the stylesheet. A result tree is either a final result tree or a temporary tree.]

[定义:最终结果树是结果树构成部分转换的最终输出.一次创建,最终的内容结果树无法访问样式表本身.]xsl:result-document 指令总是创建一个最终结果树,和一个也可以创建最终结果树由初始模板隐式."

[Definition: A final result tree is a result tree that forms part of the final output of a transformation. Once created, the contents of a final result tree are not accessible within the stylesheet itself.] The xsl:result-document instruction always creates a final result tree, and a final result tree may also be created implicitly by the initial template."

这意味着 XSLT 转换的所有输出都是一组结果树(如果没有使用 ,这将是一个单一的结果树).

This means that all output from the XSLT transformation is a set of result trees (this will be a single result tree if no <xsl:result-document> is used).

此外,任何临时树,例如在 的主体中创建的树(不是作为单独的输出生成,而是用于内部在转换过程中)是一个结果树.

Also, any temporary tree like one created in the body of an <xsl:variable> (that isn't produced as a separate output, but is used internally in the course of the transformation) is a result tree.

重要的是要知道任何 XSLT 转换都对树进行操作,并且转换的结果也是一组树.

It is important to know that any XSLT transformation operates on trees and the result of the transformation is also a set of trees.

这篇关于什么是 XSLT 结果树的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆