Attribute
The <Attribute>
element represents an existing attribute in the document metadata.
Place the <Attribute>
element immediately below any Field element to standardize matching attributes that exist on the metadata field(s).
Metadata field attributes can be matched by exact name, or by regular expression. In addition the attributes can be filtered by value.
Attribute | Description |
---|---|
name
|
The name of an existing attribute to standardize. |
nameRegex
|
A regular expression to match the names of existing attributes to standardize. |
You can use the following attributes to filter matching attributes by value:
Attribute | Description |
---|---|
containsRegex
|
The attribute value must contain a match to this regular expression. |
matches
|
The attribute value must match this value exactly. |
matchesRegex
|
The whole attribute value must match this regular expression. |
The following example performs operations on all attributes of the field "myField" that have a name beginning with "startsWith".
<FieldStandardization> <Field name="myField"> <Attribute nameRegex="startsWith.*"> ... </Attribute> </Field> </FieldStandardization>