Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
Hello adepters,
I looking for ACL help to perform attribute value change for the selected part of xml file. In my schema I have a attribute called copyfit and this attribute is available in some block level element. So when I select content of xml and activate the ACL code it should prompt the user to put any value between 0-9 and the copyfit attribute value should be changed/inserted as per the user input.
For example if my selected content is
<section>
<head></head>
<para><para>
<list></list>
</section>
the attribute copyfit is only available for <section> and <head> then it should only change/insert in those elements only.
Thanks in advance.
Karthik
Thanks for the code Andy. That gives me a good start.
I executed the code in the command line and it seems the delete part works but the code did not not work for changing the attribute. I browsing through the ACL documentation to find ways of changing the code to the below need.
1. User selection needs to be marked.
2. Prompt the user for old attribute value and new attribute value
3. On the marked selection replace the old attribute value with the new one.
At this point we have AT processing instruction to drive the presentation output which the team don't like. So we made changed to the schema to have a attribute in every element. Now the user is not happy because he/she had to modify attribute in all elements for the required section. Only by scripting I can make this work effectively - both the parties will be happy.
Karthik