Remove Attribute discards the specified attribute on all elements in the supplied collection of document elements.
Elements in the supplied collection without the attribute are left unchanged. The rule does not apply to descendant elements.
This rule uses the following parameters:
- Attribute Name
- The name of the attribute to be removed.
Note: No validation is performed. For example, the attribute may be required to exist in the relevant schema or DTD. We recommend that you validate the change before checking in
locking units of the affected elements.
Removing an Attribute by Name and Value
Suppose you want to remove all occurrences of the following attribute: @importance="normal" on elements in a topic. To correct the problem, select the topic and perform a Basic Search using these criteria:
- Find Elements
- By Attribute
- @Name is importance
- @Value Is
- Value: normal
- Select all of the element results in the Details view and select .
- From the Type list, select Remove Attribute.
- In the Attribute Name field, type importance.
- Leave the Check In check box cleared, so you can validate the changed elements after the job runs.
- Enter a Version Note describing what the job specified.
- Click Ok.
The batch job runs. When it completes, you will receive an email notification indicating the results.