Another important enhancement to XSLT is the inclusion of the XSL: function tag, which creates new XPath functions (see Listing 5).
XSLT中另一个重要的改进是引入了xsl:function标签,可用它创建新的xpath函数(参见清单5)。
You need to associate a function with the tag.
您需要使用标签将功能联系起来。
When the user submits a search, an API call is made by dynamically adding a script tag to the page and specifying the name of a callback function.
用户提交搜索时,会动态添加一个脚本标记到页面并指定回调函数的名称,从而进行一次API调用。
The function then renders an anchor tag that looks almost exactly like the original DHTML version.
函数随后会呈现一个锚定标记,其外观几乎与原DHTML中的版本完全相同。
I used this tag to create a new function that maps types specified in the abstract model (the original input file) into SQL native types for the output file (Listing 6).
我使用该标签创建了一个新的函数,将抽象模型(原始输入文件)中指定的类型映射到输出文件中的SQL原生类型(清单6)。
When the tag loads, the callback function executes, and the information returned from the server passes to it through its arguments.
标记加载后,会执行回调函数,并通过回调函数的参数把从服务返回的信息传递给该回调函数。
The best way to know when a tag is loaded is to have the script that the tag returns call a function instead of simply loading data.
获悉标记何时加载的最好的方法是让标记返回的脚本调用函数而不是简单地加载数据。
For this example, in which the database query only returns the rows of a single table, you might just write a small PHP function to wrap each column in an XML tag.
在本例中,数据库查询只返回单个表的行,您也许要编写一个php小函数对XML标记中的每一列进行打包。
You'll use this function to set the tag of the highest element.
您将使用此函数设置最高元素的标记。
You'll use this function to set the value of the currently open tag, as shown in Listing 5.
您将使用此函数设置当前打开标记的值,如清单5 所示。
I pass this function a four-character NWS station ID and the name of an HTML DIV tag.
并向该函数传递四字符的NWS站点ID和HTMLDIV标记名称。
You'll use this function to have a dispatch tag created for you based on the inputs you send to the function.
您将使用此函数根据传给函数的输入创建调度标记。
A program call framework is provided via a program call markup language (PCML), a tag language used for supporting the program call function of the Toolbox.
通过一种程序调用标记语言(PCML)提供一个程序调用框架,PCML这种标记语言用于支持Toolbox的程序调用功能。
This function is then specified in the getIconClass attribute of the tree widget tag, as shown in Listing 18.
此函数之后会在这个tree小部件标记的geticonclass属性内指定,如清单18所示。
Take a look at the function onview inside the file FlexWrapper.js to see how the tag is constructed.
可以通过查看Flex Wrapper . js文件中的onview函数,了解这个标记是如何构造的。
This function is also invoked once the page is loaded in the browser because the onload attribute of the tag contains the validateText() call.
每次页面加载到浏览器中时也将调用此函数,因为标记的onload属性包含validateText() 调用。
This function displays a complete select1 tag.
此函数显示了一个完整的select1标记。
The inputTag function has a slightly different layout in that it has a nested XHTML label tag, as shown in Listing 11.
inputtag函数的布局稍有不同,因为它有一个嵌套的XHTML标签标记,如清单11所示。
And the AddBooks function, having been called, indicates to the page that the tag has loaded properly and has completed loading.
而且被调用的AddBooks函数会向页面指示标记被正确加载,并已加载完成。
This tag is loaded early in the loading process, but it won't be executed until the body onload function is called.
此标记在加载过程的早期加载,但它在body内的onload函数调用之后才会执行。
You're passing the name of the tag being created to the new function check (which you'll define in a moment).
您将创建的标记名称传给新函数check(这个函数稍后将做定义)。
The onload attribute of the tag tells the browser to call the plot function when the page is loaded.
标记的onload属性告诉浏览器在载入页面时调用plot函数。
The function then sets the innerHTML attribute of the graph tag to be the newly generated HTML.
此函数随后将graph标记的innerhtml属性设置为新生成的HTML。
For processes 1 and 2, the recv function is blocking, which means that the program will wait until it receives a message with tag ID 9 from process 0.
对于进程1和2,recv函数被阻塞,这意味着程序会等待,直到从进程0收到标签id为9的消息。
Similary, rather than using the dollar-dollar function to retrieve elements by tag or class name, in YUI you use the Y.all function instead
同样,与使用双美元符号函数根据标记或类名检索元素不同的是,YUI使用了Y.all 函数
At that time, the sole function of PLATO Notes was to tag a bug report with the user's ID and the date and to make the file secure so that other users couldn't delete it.
在当时,PLATONotes的惟一功能就是为bug报告加上用户ID和日期的标签,以及保护文件避免被其他用户删除。
You'll use this function to have a submission XForms XHTML tag created for you.
您将使用此函数创建一个X FormsXHTML提交标记。
For example, you can see the method tag of type insert in the model and the resulting input function in the output class.
比如,模型中insert类型的method标签,以及输出类中的结果input函数。
The HTML BODY tag taken from AddressBook.html shown below associates the OnPageLoad function with the onload event, and is called whenever the page is loaded.
下面显示的AddressBook .html中的htmlBODY标记将onpageload函数与onload事件相关联,每当装载该页面时,就会调用这个函数。
The tag function allows you to search for blog articles with a particular tag.
tag函数允许您搜索带有特定标记的博客文章。
应用推荐