I'm trying to write an ACL script that will remove <revst>, <revend> and chg attributes within a specific tag. My problem is that it is deleting the tags and attribute from the entire document not just the specified tag.
Here is the portion of the ACL that is not working:
#Deletes all Rev bars and change attributes from the Front.
response("You have selected the Front.")
for (m = oid_first(mfmatr); oid_valid(m); m = oid_forward(m))
oid_find_children(m, revst_oids, 'revst');
for (a=1; a<=count(revst_oids); a++)
oid_find_children(m, revend_oids, 'revend');
for (b=1; b<=count(revend_oids); b++)
for (i = 1; i<= count(h); i++)
Any help would be greatly appreciated as I am a rookie at best in ACL.