Page 1 of 1
Schema Aware Delete Reject action when result is invalid isn't wokring
Posted: Thu Oct 05, 2023 8:32 am
by Prateeksha_Dixit
Hi,
I'm trying to restrict deletion if Document Validation Fails. I had checked Custom in schema Aware Editing and chosen Reject action when result is invalid.
image.png
Still, when I'm deleting element which results in validation failure, it is getting deleted.
No error/warning pop up is coming.
Can anyone please suggest how to restrict delete element operation and show error pop up if validation fails.
Thanks,
Prateeksha
Re: Schema Aware Delete Reject action when result is invalid isn't wokring
Posted: Thu Oct 05, 2023 9:26 am
by Radu
Hi Prateeksha,
Can you give me a precise example of such a situation? Are you using the DITA XML vocabulary or some other XML vocabulary?
What element are you deleting? How are you deleting it? Maybe you can give me some steps to reproduce the problem on my side.
Regards,
Radu
Re: Schema Aware Delete Reject action when result is invalid isn't wokring
Posted: Fri Oct 06, 2023 12:28 pm
by Prateeksha_Dixit
Hi Radu,
I'm using DTD schema and have created a new framework in xml editor. The use case is to restrict the deletion of mandatory elements as per schema.
For example, in DTD schema if a root element structure is defined as <!ELEMENT ROOT ( Subject , RevTrans? , Summary? Appendix*)>, then this subject element should not get deleted as it is required element. If I try to delete then I should get pop up message
"Invalid Deletion, this element cannot be deleted!"
Currently, even after selecting schema aware editing option for deletion the elements are getting deleted and just getting red underline showing following message in validation panel..
image.png
image.png
Re: Schema Aware Delete Reject action when result is invalid isn't wokring
Posted: Mon Oct 09, 2023 2:10 pm
by cosminef
Hello,
In order for us to understand the situation you are facing as accurately as possible, could you provide us with the exact steps you follow when deleting that item ?
Also, if you have the possibility, a sample of the document you are testing could help us. If you can send this sample, you can do so to the email address:
support@oxygenxml.com