ACL works when you open an xml normally, but not in Resolved Document View
I am posting this problem for one of our developers.
In an .acl file, we are using the functions ‘oid_modify_attrs’ and ‘oid_delete_attr’.
When running the .acl on an .xml file opened directly from within Epic (File > Open [filename] or opening the xml from a ditamap file, the atttibute function calls work as expected. When working from within Resolved Document View, the functions fail.
What needs to be done differently in order for these functions to work in Resolved Document View?
When you say "Resolved Document", do you mean Resolved Document for Editing? If so, you may need to lock the inclusions in order to change content in them.
The Resolved Document for Editing is built by basically making a wrapper document analogous to the ditamap, but using xinclude to bring the topics inline. However, you have to lock an inclusion before you can edit it. In the Editor, this happens automatically, but with a script you probably need to do it explicitly.
Try this: before the calls to oid_modify_attr() or oid_delete_attr(), call oid_entity_lock(oid), where oid is the element whose attributes you want to modify or delete.