每个正则表达式都由一个匹配元素表示。
编写一个模板,匹配元素,将其输出到元素中。
Code a template to match the elements to output the element.
访问第一个匹配元素的样式属性。
取得第一个匹配元素的属性值。
获取匹配元素在当前视口的相对偏移。
Get the current offset of the first matched element relative to the viewport.
表示选取这些匹配元素中的第一个元素。
取得所有匹配元素的内容。
清单1显示的是一个简单的用于匹配元素的XSLT模板。
Listing 1 shows a simple XSLT template that matches elements.
两个记录(HDR和LIN )转换成两个匹配元素。
The two records (HDR and LIN) translate into two match elements.
将匹配元素的队列用新的一个队列来代替(函数数组)。
Replaces the queue of all matched element with this new queue (the array of functions).
获取第一个匹配元素外部高度(默认包括补白和边框)。
Gets the outer height (includes the border and padding by default) for the first matched element.
取得一个包含着所有匹配元素的唯一父元素的元素集合。
Get a set of elements containing the unique parents of the matched set of elements.
这个元素在匹配元素集合中的位置变为0,而长度变成1。
The position of the element in the set of matched elements starts at 0 and goes to length - 1.
在XPath例子中,last函数返回最后匹配元素的索引(用在方括号中)。
In the XPath example, the last function returns the index of the last matched element, which you use in square brackets.
获得集合中每个匹配元素的所有前面的兄弟元素,选择性筛选的选择器。
Get all preceding siblings of each element in the set of matched elements, optionally filtered by a selector.
创建数组函数的输入端会自动匹配元素或数组输入,取决你要连接的对象。
The Build array function input will automatically adapt to an element or an array input, depending on what you wire to it.
在XI的第一个版本中,您应该通过与匹配元素相关的模式属性指定正则表达式。
In the first versions of XI, you would specify the regex through a pattern attribute associated to the match element.
通过高度变化来切换所有匹配元素的可见性,并在切换完成后可选地触发一个回调函数。
Toggle the visibility of all matched elements by adjusting their height and firing an optional callback after completion.
将匹配的元素集合缩减为一个元素。这个元素在匹配元素集合中的位置变为0,而集合长度变成1。
Reduce the set of matched elements to a single element. The position of the element in the set of matched elements starts at 0 and goes to length - 1.
结果是由所有匹配元素包含的文本内容组合起来的文本。这个方法对HTML和XML文档都有效。
The result is a string that contains the combined text contents of all matched elements. This method works on both HTML and XML documents.
取得第一个匹配元素的html内容。这个函数不能用于XML文档。但可以用于XHTML文档。
Get the HTML contents of the first matched element. This property is not available on XML documents (although it will work for XHTML documents).
设置每一个匹配元素的html内容。这个函数不能用于XML文档。但可以用于XHTML文档。
Set the HTML contents of every matched element. This property is not available on XML documents (although it will work for XHTML documents).
取得一个包含着所有匹配元素的祖先元素的元素集合(不包含根元素)。可以通过一个可选的表达式进行筛选。
Get a set of elements containing the unique ancestors of the matched set of elements (except for the root element). The matched elements can be filtered with an optional expression.
XPath2引入了一些新的序列类型构造,允许应用程序在XML模式中使用类型定义和元素声明,从而在XML实例文档中匹配元素。
XPath 2 introduces a few new sequence type constructs that allow applications to use the type definitions and element declarations in an XML schema to match elements in an XML instance document.
那么我们如何知道哪些光谱模式与哪些元素相匹配呢?
So how do we know which spectral patterns match up with which elements?
我的方法都将只使用该方法迭代匹配的元素。
My methods will only loop through matched elements in this manner.
如我们将看到的,通过匹配根元素,XSL处理器可以最轻易地找到该信息。
As we will see, the XSL processor finds this information most easily by matching the root element.
出于性能和稳定性考虑,他们推荐所有的方法都使用它迭代匹配的元素。
For performance and stability reasons, they recommend all methods use this means to loop through matched elements.
出于性能和稳定性考虑,他们推荐所有的方法都使用它迭代匹配的元素。
For performance and stability reasons, they recommend all methods use this means to loop through matched elements.
应用推荐