How to set IDs using ACL
This is probably a simple question for someone with ACL experience. I am not one of those people. I am looking to create an ACL script that would allow for an author to add "id" attributes to specific tags. As an example the elements needing IDs are <proceduralStep>. These ids would have a specific format, "stp-xxxx", where the xxxx are numbers. They do not need to be sequential.
I can do this outside the editor using XSL, but I would like to make it a function in Arbortext and make it part of the authoring process. Can anyone point me in the right direction? I know that this works as a one-by-one command:
oid_modify_attr(oid_caret(),id,"stp-0001")
How do I loop over all <proceduralStep> elements and apply a new unique number? Additionally i'd like to make a menu for this command to be called from, but at the moment i'd just like to be able to make the looping work.
Thank you in advance for any assistance.
Tom Furst

