Debugging Content Completion Assistant in custom framework
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 3
- Joined: Thu Dec 13, 2018 5:08 pm
Debugging Content Completion Assistant in custom framework
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!
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!
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Debugging Content Completion Assistant in custom framework
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
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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Debugging Content Completion Assistant in custom framework
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
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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 4
- Joined: Tue Jan 10, 2023 11:36 am
Re: Debugging Content Completion Assistant in custom framework
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.
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.
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Debugging Content Completion Assistant in custom framework
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
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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 4
- Joined: Tue Jan 10, 2023 11:36 am
Re: Debugging Content Completion Assistant in custom framework
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.
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.
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Debugging Content Completion Assistant in custom framework
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:
Regards,
Radu
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
You do not have the required permissions to view the files attached to this post.
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 4
- Joined: Tue Jan 10, 2023 11:36 am
Re: Debugging Content Completion Assistant in custom framework
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!
```
<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!
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Debugging Content Completion Assistant in custom framework
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
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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service