El elemento match será el ámbito de la definición de restricción de identidad.
The match element will therefore be the scope of the identity constraint definition.
Si no se puede encontrar ningún elemento match que coincida con el valor de cadena, no se realiza ninguna acción.
If no match element can be found matching the string value, no action is taken.
De modo que, dentro del ámbito de cada elemento match, restringimos el valor de los nodos team/@name como valor único.
So, within the scope of each match element, we constrain the values of the team/@name node to be unique.
Recuerde que el elemento match es el nodo de contexto (el ámbito).
Note that the match element is the context node.
En la imagen siguiente aparece una restricción de clave key definida en un elemento match, similar a la primera restricción de unicidad del ejemplo.
The screenshot below shows a key constraint defined on a match element that is similar to the first uniqueness constraint described above.
Si la coincidencia no es de tipo global, el primer elemento match tiene el valor de la porción de cadena que coincide con la expresión regular completa.
If the match isn't a global one, the first match element has the value of the portion of the string matched by the entire regular expression.
La restricción de unidad que acabamos de describir especifica que dentro del ámbito de cada elemento match, cada elemento team debe tener un valor único en el atributo @name.
The uniqueness constraint described above specifies that within the scope of each match element, every team element must have a unique @name attribute-value.
Ejecuta el elemento match especificado.
Executes the specified match element.
La restricción de unicidad debe tener, por cada elemento match (el selector), una combinación única de valores para los atributos @date y @location dentro del ámbito del elemento results.
The uniqueness constraint must have, for each match element (the selector), its combination of @date and @location values unique within the scope of the results element.
En esta vista, las restricciones se pueden editar en la pestaña Restricciones de identidad (imagen anterior) o en el recuadro restricciones del elemento del diagrama (observe que en la imagen siguiente el elemento match tiene una restricción de unicidad con un selector team).
In this view, IDCs can be edited either in the Identity Constraints tab (screenshot above) or in an element's Constraints box in the diagram (screenshot below, in which the match element has a uniqueness constraint that has a team selector).
En la vista general del esquema, seleccione el elemento match.
In Schema Overview, select the match element.