Page 1 of 1

Debugging Content Completion Assistant in custom framework

Posted: Mon Jan 09, 2023 8:41 pm
by dasch124
Hi all!
We've set up a custom framework for editing TEI documents which should propose attribute values based on the RNG schema referenced in each document. Validation works fine, however using oXygen version > 23 I don't get any attribute values proposed from the schema.
I'm not sure how to attack this, so I'm thankful for any hints where to start debugging.
Thanks in advance!

Re: Debugging Content Completion Assistant in custom framework

Posted: Tue Jan 10, 2023 9:05 am
by Radu
Hi,

There was this posted issue which might be related to your problem:
viewtopic.php?p=65887
You mentioned using oXygen version > 23 , did you test also with Oxygen 25? We made a fix in Oxygen 25 related to that change in the TEI Relax NG schemas.

Regards,
Radu

Re: Debugging Content Completion Assistant in custom framework

Posted: Tue Jan 10, 2023 11:38 am
by linxOD
Hello,
same problem here. Switched from v23 to v25 and it stopped working. Content completion works with the same custom framework and dataset in v23.

Re: Debugging Content Completion Assistant in custom framework

Posted: Tue Jan 10, 2023 11:57 am
by Radu
Hi,

Can you maybe post a small TEI sample document which I can use to reproduce the problem?
Are you using for editing the TEI schemas bundled with Oxygen 25 or did you install a TEI-specific add-on which provides other schemas?

Regards,
Radu

Re: Debugging Content Completion Assistant in custom framework

Posted: Tue Jan 10, 2023 1:48 pm
by linxOD
Hi,
you can replicate it with this repo: https://github.com/ERC-TibSchol/TEI-curation
Schema in : ../803_RNG-schematron/1.0.0
Custom Framework: ../framework/ERC-TibSchol
as test: `<rs>` should propose type as attribute and specific attribue values.

Re: Debugging Content Completion Assistant in custom framework

Posted: Tue Jan 10, 2023 2:17 pm
by Radu
Hi,
I guess the GitHub repository is private because I cannot access it. I do not absolutely need real life examples, I can also work with some small sample you can create on your side to reproduce the problem.

Regards,
Radu

Re: Debugging Content Completion Assistant in custom framework

Posted: Tue Jan 10, 2023 3:40 pm
by linxOD
sorry thought this one is public. I have this issue on several repos. All with the same framework structure.
Opening the *.xpr file with Oxygen 23.0 the content completion works but not for v25.0
Here is a public one: https://github.com/freud-digital/frd-working-data
schema: ./framework/freud-hka/schema/out
framework ./framework/freud-hka
xml file for testing: ./werke/1901-001/*.xml
`<rs>` should propose type as attribute and specific attribue values.

Re: Debugging Content Completion Assistant in custom framework

Posted: Tue Jan 10, 2023 4:55 pm
by Radu
Hi,

Thanks, I can reproduce the problem now with your samples.
Your Oxygen framework customization contains a Java extension "${framework}/autocomplete/tei-completer-1.1-oxygen-plugin.jar". So this extension takes control over the way in which content completion proposals are suggested.
If for example I remove this Java extension from the framework Oxygen starts proposing again the content completion entries:
Screenshot 2023-01-10 at 15.52.00.png
Do you know the persons who work on this "tei-completer" project? Maybe we should report this problem to them. I do not know how their Java code looks like in order to see what the problem could be.

Regards,
Radu

Re: Debugging Content Completion Assistant in custom framework

Posted: Tue Jan 10, 2023 5:59 pm
by linxOD
Thank you for pointing this out. I did not think about this connection. The config uses the e.g. type attribute as dependant for access an API.
```
<autoComplete>
<context>//rs</context>
<attribute>@ref</attribute>
<dependent default="person">@type</dependent>
<selection>@n</selection>
<request>
<url>$baseUrl/$dependent?q=$selection</url>
</request>
</autoComplete>
```
I guess something changed in v25 and the extention can't handle it yet.
This is the extention Repo: https://github.com/BCDH/TEI-Completer
@adamretter is usually very quick to respond.
But since this is not an Issue on your end I will create an issue.

Thank you for your help!

Re: Debugging Content Completion Assistant in custom framework

Posted: Wed Jan 11, 2023 8:10 am
by Radu
Hi,

Right, contacting Adam about this should be the way to go. Adam can always ask us if he needs extra support from our side.

Regards,
Radu