Schema Aware Editing Mode WebAuthor

Oxygen general issues.
jacobBocaj
Posts: 12
Joined: Thu May 11, 2017 10:18 pm

Schema Aware Editing Mode WebAuthor

Post by jacobBocaj »

Hello,

I am unable to stop schema invalid edits to documents in the WebAuthor environment.

In my options.xml file for WebAuthor I have set field, 'schemaAwareEditingMode' to 'schema_aware_editing_custom' and set field, 'isVerifyDeleteElementTagsAction' to 'true' however, I am still able to remove elements that render documents as invalid.

How can I prevent document modifications that render documents invalid? I found a forum post that covers this issue but doesn't post the final resolution: post22654.html?hilit=isVerifyDeleteElem ... ion#p22654.

Any help will be appreciated,
Jacob
mihaela
Posts: 490
Joined: Wed May 20, 2009 2:40 pm

Re: Schema Aware Editing Mode WebAuthor

Post by mihaela »

Hi Jacob,

The 'isVerifyDeleteElementTagsAction' tag corresponds to the "Reject action when its result is invalid" option from "Delete element tags with backspace and delete" options group. Setting this option to 'true' will prevent invalidating the document by deleting the element tags, not by deleting the entire element for example.
Can you give us a small sample and some steps to reproduce the sittuation in which you are expecting that this option to inhibit deleting an element?

There is another thing that you should know: if you use Relax NG schemas this option will not have any effect (because, for the moment, Oxygen does not recognize required elements from Relax NG schemas).

In general you do not need to change the schema aware options because the defaults should be sufficient for preventing schema invalid edits.

Best Regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
jacobBocaj
Posts: 12
Joined: Thu May 11, 2017 10:18 pm

Re: Schema Aware Editing Mode WebAuthor

Post by jacobBocaj »

Mihaela,

The issue was related to the RNG schema as you indicated. I've resolved the problem and all is working well now.

Thank you for the information.

Regards,
Jacob
mihaela
Posts: 490
Joined: Wed May 20, 2009 2:40 pm

Re: Schema Aware Editing Mode WebAuthor

Post by mihaela »

Hi Jacob,

Thank you for your feedback. We will add the required element support for RNG schema in a future version and we will let you know when it will be available.

Best Regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
mihaela
Posts: 490
Joined: Wed May 20, 2009 2:40 pm

Re: Schema Aware Editing Mode WebAuthor

Post by mihaela »

Hi,

The support for required elements for RNG schema was implemented and it is included in Oxygen 19.1 (which we released a couple of days ago).

Best Regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
Post Reply