Use a global document variable against which XPath expressions are evaluated, and create a function to which you can pass an expression.
使用一个全局文档变量来定义进行判断的XPath表达式,并创建一个接收表达式的函数。
When you want to create an atomic value of one of the time-oriented data types, use a type-constructor function and provide the string representation as an argument.
如果需要创建与时间相关的数据类型的单个值,可以使用类型构造器函数并提供时间的字符串表示形式作为参数。
You can either call the function directly, or create a view based on this statement and then query the view.
可以直接调用此函数,也可以根据这个语句创建视图,然后查询视图。
In this final step, you create a view and function on top of the CUSTOMER_INFO table.
在最后一步中,您在customer_info表的基础上创建了一个视图和函数。
In order to do this, the basic idea is to create a combined user-defined function that first invokes the model creation process and that then extracts the rules and returns them as a result set.
以此为目的,基本的想法是创建一个用户定义组合函数,此函数首先调用模型创建过程,之后再提取规则并将这些规则作为结果集返回。
Note: Alternatively you can create a database trigger to capture every INSERT on your table and tell it to validate the data as XML using the XMLVALIDATE function before performing the INSERT.
注意:您也可以选择创建一个数据库触发器来捕捉表上的每个INSERT操作,并告诉它在执行INSERT之前使用XMLVALIDATE函数验证XML数据。
Create a reverse function - one that will take a timestamp for a certain locale and return the equivalent UTC timestamp.
创建一个反转函数——该函数将以某个地区的时间戳作为参数,并返回对应的UTC时间戳。
With this captured information, we can create a list of source file names, function names and the line Numbers for the functions.
使用捕获的信息,我们可以创建源文件名、函数名和函数行号的列表。
One of the mitigations is that LAMP application servers are generally dedicated to a particular function, and users can't create the potentially dangerous symbolic links.
缓解风险的措施之一是LAMP应用服务器通常专注于一种具体功能,用户无法创建危险的符号连接。
You can create and name a function or create a nameless function, as I've done.
可以创建并命名一个函数,也可以创建无名的函数。
Instead, create a wrapper function that either returns a handle to the existing object for a particular community or creates a new object and adds it to the map, using the code in listing 1.
相反,创建一个包装器函数,它返回现有对象的句柄,或者创建一个新对象并添加到映射中,如清单1中的代码所示。
In the updateCatalog function, retrieve the form field values and create an SQL statement to add a row to database table Catalog.
在updatecatalog函数中,获取表单字段值,并创建一条sql语句,以便将一行添加到数据库表Catalog中。
Let's create another Application class that will contain a main function to open the ContactUI and set up the context object.
让我们来创建另一个application类,其中会包含一个主函数,用来打开ContactUI和设置这个上下文对象。
Create a function named set_color to allow users to test background and foreground text colors.
创建一个名为set _ color的函数来允许用户测试背景和前景文本颜色。
For example, suppose you wanted to create a CommentBlock function that was passed a string and formatted it into an appropriate comment block for various programming languages.
例如,假设您希望创建一个CommentBlock函数,它将接收一个字符串并针对不同的编程语言将其格式化为相应的注释块。
To create a filesystem with fuse, you need to declare a structure variable of type fuse_operations and pass it on to the fuse_main function.
要使用fuse来创建一个文件系统,您需要声明一个fuse_operations类型的结构变量,并将其传递给fuse_main函数。
To return multiple values from a function, enclose them in parentheses and separate them with commas — in other words, create and return a tuple.
为了从一个函数中返回多个值,要将其括在一个括号中并以逗号分隔——换句话说,创建并返回一个tuple。
As a simple example, let us create a generic function called whoami and some tagged methods to dispatch to.
作为一个简单的例子,我们来创建一个称为whoami的泛型函数以及一些要被分派标记的方法。
In this section, you will learn how to create a basic web page that USES Ext.Direct to fetch the current date and time from the server using the PHP date function.
在本小节,您将学习如何创建一个基本的we b页,在该we b页中您可以通过PHP的date功能利用Ext . Direct从服务器获取当前日期和时间。
Now that you have the show_users function, you can create a users.php file that runs it and displays a list of all the users in the system, each with a link that says follow next to the user name.
有了show_users函数之后,接下来可以创建一个users . php文件,该文件将运行这个函数,并显示系统中所有用户的一个列表,对于每个用户,在用户名的旁边都有一个follow链接。
you could create a function such as the following, which also handles the return code and, if needed, increases the error counter
而是创建一个如下所示的函数,此函数也可以处理返回码,如果有必要,还可以增加错误计数器
In this example, let's create a Browse button that allows users to search for files on their computer and triggers the custom function. To do this, follow these steps.
在本例中,将创建Browse按钮,允许用户搜索用户计算机上的文件并触发定制函数。
Create a function named get_widow_size to determine the number of rows and columns.
创建一个名为get _ widow_size的函数用来确定行数和列数。
Create a class named Application and write the straightforward main function shown in Listing 2.
创建一个名为Application的类并编写如清单2中所示的相当直观的main函数。
Functions create the stack frame during the beginning of the function (called the function prologue) and tear it down at the end of a function (called the function epilogue).
函数在函数开始过程中(称为函数序言(function prologue))创建堆栈帧,并在函数结束时(称为函数尾声(functionepilogue))销毁它。
In this section, we create a Action web service web service, and access the web service using the web_client_api function and the direct instance method invocation.
在本节中,我们将创建ActionwebService web服务,并访问使用web_client_api函数的web服务和直接实例方法调用。
To make it easier on yourself, first create a helper function called build_answers that, when given a database handle and a poll ID, outputs the XML for all the answers to that poll (see Listing 4).
为了简单起见,首先创建一个名为build_answers的helper函数,当给定一个数据库句柄或调查ID后,该函数会输出该调查所有答案的XML(参见清单4)。
The new XSL: function instruction introduced in XSLT 2.0 lets stylesheet writers create their own function in a stylesheet using pure XSLT syntax and semantics.
XSLT 2.0引入的新指令xsl:function允许样式表作者使用纯xslt语言和语义在样式表中创建自己的函数。
To generate a C++ friend function that is a friend of a class, you need to create a UML operation within a UML Class and apply the cpp_operation stereotype on the UML operation.
为了在一个类中创建一个 C++友函数,您需要在一个UML 类的内部创建一个 UML操作,并且将 cpp_operation套用在该 UML 操作上面。
The concept of lambda functions is the basis for closures and provides a much-improved way to create functions on the fly vs. the create_function function already in PHP.
lambda函数的概念是闭包的基础,并且提供了一种比PHP中已有的create_function函数改进了很多的动态创建函数的方法。
应用推荐