I also often hear the claim that while XQuery syntax looks nicer, it lacks XSLT's template style pattern matching.
我也常常听到这样的说法,虽然XQuery的语法看起来更好,但是缺少XSLT模板风格的模式匹配。
In a typical style sheet, most template rules match element nodes in the tree.
在典型的样式表中,大多数模板规则匹配树中的元素节点。
But what if you want to change the output to match a particular style, or want to change the given template to match the style and output guidelines that are applicable within the current page?
但是如果想要更改输出以符合某种特定的样式,或者想要更改给定的模板以符合适用于当前页面的样式和输出原则,情况又会如何呢?
It's an example of a very common tool that's going to be really useful to us, not just for doing search, but for doing a whole range of problems. That is, in essence, the template the describes a log style algorithm.
不仅仅是做搜索,还可以解决一整类问题,本质上,这个模板就描述了,对数形的算法,我们一会再回来。
应用推荐