Each user-defined XPath function can be enabled or disabled by, respectively, checking or unchecking the check box to the left of the function's entry in the list of user-defined XPath functions (see screenshot below).
Las funciones XPath definidas por el usuario se pueden habilitar o deshabilitar con solo activar o desactivar la casilla situada a la izquierda de la función en la lista Funciones XPath (imagen siguiente).
Notice that in the function-call listed above there are three input arguments corresponding respectively to the three parameters defined for the user-defined XPath function
Observe que en la llamada a función del ejemplo anterior hay tres argumentos de entrada que equivalen respectivamente a los tres parámetros definidos para la función XPath definida por el usuario
Consider the user-defined XPath function Stock(), which is defined with three parameters as shown in the screenshot below.
Por ejemplo, imagine la función XPath definida por el usuario Stock(), que tiene definidos los tres parámetros que aparecen en la imagen siguiente.
A user-defined XPath function can be re-used in any design component that accepts an XPath expression, for example, in Auto-Calculations, conditions, and combo boxes.
Las funciones XPath definidas por el usuario se pueden utilizar en cualquier componente de diseño que acepte expresiones XPath, como cálculos automáticos, condiciones y cuadros combinados, por ejemplo.
To create a user-defined XPath function, click the icon of the XPath Functions item.
Para crear una función XPath definida por el usuario, haga clic en el icono del elemento Funciones XPath.
A user-defined XPath function can be added by clicking the Add icon of the Xpath Functions item.
Puede añadir una función XPath definida por el usuario haciendo clic en el botón Agregar de la sección Funciones XPath.
A user-defined XPath function requires: (i) a name (a text string), and (ii) a definition (an XPath expression).
La definición de una función XPath exige: (i) un nombre (una cadena de texto) y (ii) una definición (una expresión XPath).
These parameters can then be used in the definition of the user-defined XPath function (in the Function Body pane).
Estos parámetros se pueden usar en la definición de la función XPath (en el panel Cuerpo de la función).
So if the sps:Stock user-defined XPath function is defined as in the screenshot above and if it is called with the following XPath expression
De modo que si llamamos a la función XPath sps:Stock de la imagen anterior con esta expresión XPath
A user-defined XPath function can also have an optional return type (specified by selecting a type from the dropdown list of the Return Type combo box).
Una función XPath definida por el usuario también puede tener un tipo devuelto opcional, que se especifica seleccionando un tipo de la lista desplegable del cuadro combinado Tipo de valor devuelto en el cuadro de diálogo "Funciones XPath"(imagen siguiente).
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.