feature request: notify user when he's deleting an element with specific attribute values

Hi group Suppose I get to edit content which was written by someone else, and I delete some elements of which I think that they do not have a specific purpose. For example, I see content wrapped in a <ph> element and I could just delete the <ph> element, but leave the content in the parent element. The <ph> element, however, may have been used for specific purposes in the output, for example DITA flagging, so it may have specific attribute values of which I was not aware. Would it be possible for oXygen to give me a warning if I were to delete such an element, for example: "The element you are going to delete contains attributes. Are you sure you want to delete this element?" And maybe add the "Do not ask again" option? Thanks -- Yves Barbion www.scripto.nu

Hi Yves, Our Java-based API should be enough for a developer to implement such a functionality so if you are interested in this approach I could elaborate. But we cannot implement something like this as a part of the default behavior. Maybe when you are working to refactor somebody else's content you should have the XML document in the Author mode displayed as "Full Tags With Attributes" (there is a toolbar drop down button for this). Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 4/9/2013 11:08 AM, Yves Barbion wrote:
Hi group
Suppose I get to edit content which was written by someone else, and I delete some elements of which I think that they do not have a specific purpose. For example, I see content wrapped in a <ph> element and I could just delete the <ph> element, but leave the content in the parent element. The <ph> element, however, may have been used for specific purposes in the output, for example DITA flagging, so it may have specific attribute values of which I was not aware. Would it be possible for oXygen to give me a warning if I were to delete such an element, for example:
"The element you are going to delete contains attributes. Are you sure you want to delete this element?"
And maybe add the "Do not ask again" option?
Thanks
-- Yves Barbion www.scripto.nu <http://www.scripto.nu>
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Hi Radu Yes, I always display the tags and I always have the Attributes pane open as well, so I'm always very well aware of the fact that some elements can have important attributes. I was not asking this for myself, but I was just wondering whether other users have experienced something like this too. No problem if it cannot be implemented. I'll just have to teach my colleague writers to be careful when they remove elements. Kind regards Yves -- Yves Barbion www.scripto.nu

Hi Yves, It's not a technical difficulty to implement such a check in Oxygen as a default behavior, it's just a matter of considering for how many users the behavior would be useful and for how many the behavior could potentially be annoying. So yes, if somebody else on the list has an opinion on this, it would be welcomed. Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 4/9/2013 2:50 PM, Yves Barbion wrote:
Hi Radu
Yes, I always display the tags and I always have the Attributes pane open as well, so I'm always very well aware of the fact that some elements can have important attributes. I was not asking this for myself, but I was just wondering whether other users have experienced something like this too.
No problem if it cannot be implemented. I'll just have to teach my colleague writers to be careful when they remove elements.
Kind regards
Yves
-- Yves Barbion www.scripto.nu <http://www.scripto.nu>
participants (2)
-
Oxygen XML Editor Support
-
Yves Barbion