Page 1 of 1

Update the valid elements shown in the suggestion list

Posted: Wed Nov 01, 2023 10:11 am
by David Ugalde
Hi,
I need to update which elements are shown as valid in the suggestion list: I don't want to touch or modify the current DTDs or the schema, Is there a way to do this by evaluating a Schematron file or an xml?
suggestionList.png
One of the solutions that I have tried is to include the Schematron file to evaluate from the document type association, but it doesn't change the suggestion list; it includes the error message and shows the element as invalid once the element has been included.
documentTypeAssociation.png
From the Java classes, I'm not sure if I need to modify the SchemaManager or the contentAsistant, and how to do it to get the suggestion list updated.

Please let me know if you have any doubt or question.
Thanks & Regards,

Re: Update the valid elements shown in the suggestion list

Posted: Tue Nov 07, 2023 3:14 pm
by Radu
Hi David,
Schematron is used for validation, it cannot be used to filter out content completion entries.
In the framework configuration dialog you have a "Filter - Remove content completion items" list in the Author->Content Completion tab which you can use to remove items from the content completion window.
Maybe this small blog post could help:
https://blog.oxygenxml.com/topics/custo ... etion.html
Regards,
Radu