Update the valid elements shown in the suggestion list

Oxygen general issues.
David Ugalde
Posts: 1
Joined: Wed Nov 01, 2023 8:55 am

Update the valid elements shown in the suggestion list

Post 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
suggestionList.png (33.84 KiB) Viewed 363 times
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
documentTypeAssociation.png (30.15 KiB) Viewed 363 times
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,
Attachments
image.png
image.png (30.15 KiB) Viewed 363 times
image.png
image.png (30.15 KiB) Viewed 363 times
image.png
image.png (33.12 KiB) Viewed 363 times
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Update the valid elements shown in the suggestion list

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply