表单元素模板出自雅虎的设计模式库的设计模板套件。
Form elements stencil from the Design stencil kit in the Yahoo! Design Pattern Library.
清单18中的模板将元素从文本节点中分离出来。
The templates in Listing 18 isolate the elements from the text nodes.
它定义了用于主源文档和辅助源文档中各元素的模板。
It defines templates for the elements in the main source and the secondary sources.
自动将行为添加到每个模板元素—听上去象是样式表可以做的事!
Automatically add behavior to each template element — that sounds like something a stylesheet could do!
编写一个模板,匹配元素,将其输出到元素中。
Code a template to match the elements to output the element.
清单16 中的XSLT模板显示了每个元素的位置。
The XSLT template in Listing 16 displays the position of each element.
相反,在该提议创建之后,您需要将所有元素从新模板中拖拽进该提议中。
Instead, you need to drag and drop all the elements from the new template into this proposal after it is created.
清单32.生成表单元素显示了XSL模板如何生成HTML输入字段和提交按钮。
Listing 32. Generating form elements shows how XSL templates generate the HTML input fields and the submit button.
该模板首先检查元素中是否存在任何元素。
This template first checks for the existence of any elements inside the element.
图6显示这个创作模板的元素。
您需要编辑站点区域文档,添加模板映射和其他元素。
You need to edit the site area document to add the template mapping and other elements.
清单24展示了只处理XML文档中第一个元素的模板。
Listing 24 shows a template to process only the first element in the XML document.
根元素CAM定义了整个模板本身使用的名称空间以及CAM的层次和版本。
The root element, CAM, defines the namespace used throughout the template itself as well as the level and version of CAM.
因此,如果抽取这些元素并将其放入公共模板,则可以从所有视图调用该模板(通过名称)。
So if these elements were extracted and put in a common template, the template can be called (by name) from all views.
您必须在没有模板的情况下创建提议,然后通过拖拽将模板元素复制到提议中。
You must create the proposal without a template, then copy the template elements into the proposal using drag and drop.
结果列出了元素在模板上下文中的位置。
The results list the position of the element within the context of the template.
以文档次序处理其所有子元素的模板确保处理自始至终都沿着源树进行。
A template that processes all of its children in document order ensures that processing occurs all the way down the source tree.
相反,您必须在没有模板的情况下创建提议,然后通过拖拽将模板元素复制到提议中。
Instead, you must create the proposal without a template and then copy the template elements into the proposal using drag and drop.
此窗口可使管理员管理(即添加、修改或删除)创作模板的元素。
This window lets administrators manage (that is, add, modify, or delete) the elements of the authoring template.
清单1显示的是一个简单的用于匹配元素的XSLT模板。
Listing 1 shows a simple XSLT template that matches elements.
这两个模板将和元素转换成相应的XSL - fo元素。
These two templates convert the and elements into the appropriate XSL-FO elements.
当处理器从元素的模板调用该模板时,它将一个空格添加到值的末尾,因此始终至少有一个空格。
Notice that when the processor calls this template from the template for the element, it adds a space to the end of the value so there will always be at least one space.
可以使用 <xsl:copy>来复制模板元素本身,以及有关它们的任何名称空间声明。
You can use <xsl:copy> to copy the template elements themselves, along with any namespace declarations on them.
使用以下模板来转换元素。
现在,新的指导元素(模板和实例)已成为Yummy过程的一部分了,如图18所示。
The new guidance elements (template and sample) are now part of the Yummy process, as shown in Figure 18.
这是一种非常有用的工具,如果没有满足XPath条件,样式表作者可以通过该工具从转换中去掉某个完整的元素、模板或者整个样式表模块。
This is a very useful tool that allows the stylesheet writer to exclude completely certain elements, templates, or entire stylesheet modules from the transformation if an XPath condition is not met.
这样一来,每个出现的“emps”元素将要受该模板规则的约束。
This way, each occurrence of the "emps" element, will be subject to the rules of this template.
配置创作模板的元素和默认访问。
Configure the elements and the default access of the authoring template.
node模板规则复制所有不具备更具体模板的元素。
The node template rule copies all elements that don't have more specific templates.
在Frame . xsl中还定义了与元素匹配的模板。
The template that matches the element is also defined in Frame.xsl.
应用推荐