Closed mathias-goebel closed 2 years ago
because i got no response so far here, i did another test, just to make sure the issue is reproducible.
the newly appeared error message, that likely prevents Oxygen from its regular IDREF
parsing is value of attribute "hand" is invalid; must be a URI matching the regular expression "\S+"
.
That message appears for this document, where Verison 4.4.0 is used and no auto-completion list is shown in Oxygen:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://tei-c.org/Vault/P5/4.4.0/xml/tei/custom/schema/relaxng/tei_all.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
<teiHeader>
<fileDesc>
<titleStmt>
<title>test file</title>
<author xml:id="mg">mathias goebel</author>
</titleStmt>
<publicationStmt>
<ab>test file for schema issue <ref target="https://github.com/TEIC/TEI/issues/2296">#2296</ref></ab>
</publicationStmt>
<sourceDesc>
<ab>born digital</ab>
</sourceDesc>
</fileDesc>
</teiHeader>
<text>
<body>
<p hand="#mg">
Test.
</p>
<p hand="">
test 2
</p>
</body>
</text>
</TEI>
Switching back to 4.3.0 the error disappeared and the list will become available. If i had to choose between both options, i would vote for the auto-completion feature.
suggestion: let schematron take care for additional patterns.
I have duplicated the problem. Interesting point.
Never came up (for me) in testing, because I typically leave the “Check ID/IDREF” box unchecked because of the problem (which I consider an error in oXygen, but I do not think SyncRO Soft agrees) described in Appendix 1. Technical Problem: Conflicting ID-Types.
This ticket should be reviewed and assigned on Fri evening CEST.
P.S. Love the Minions fellow as your pic.
I haven't noticed this ticket until @sydb responded but came across that issue, too. I posted to https://www.oxygenxml.com/forum/tei/topic24291.html and again the Oxygen people were very helpful and provided some tipp.
That does not make it easier for our use case, where we are not using the framework (just pointing to our customized RNG based on the latest version of TEI, i suspect the framework is not involved here) and where updating Oxygen is not possible for the project. we either have to stick to TEI 4.3.0 or ask for a fix by TEI, maybe a revert for the pattern constraint. But i agree that being backwards-compatible with Oxygen might not get highest priority. I am looking forward to the outcome of your discussion.
Some thoughts.
@context
. And whenever that list of places changes, the @context
has to be changed to match.<dataSpec module="tei" ident="teidata.pointer" mode="change">
<content>
<dataRef name="anyURI"/>
</content>
<remarks>
<p>Unlike vanilla TEI, we allow spaces in a URI (and thus
give up the capability to differentiate a single URI with
a space from 2 URIs) in order to get ID pop-ups to work in
oXygen.</p>
</remarks>
</dataSpec>
Wow, thank you! I was not aware of dataSpec
at all. Never had the desire to use it! I will include in our ODD. Usage of tei_all here was for demo purpose only.
Just for completion, someone reported this issue also on the Oxygen forum: https://www.oxygenxml.com/forum/viewtopic.php?p=65900#p65900 George Bina gave there a possible workaround and we'll also try to improve things on our side so that id/idrefs content completion starts working again in Oxygen 25.0 (Autumn this year) with the TEI 4.4.0 schemas, but I'm afraid older Oxygen versions will continue to have this problem.
Excellent, thank you @raducoravu, and good luck @mathias-goebel! Closing. If there are still problems, feel free to re-open or start a new one. :smile:
We released Oxygen 25 which should present content completion again for these constructs without the need to make any changes to the schemas.
I recently upgraded from TEI 4.3.0 to 4.4.0. I suspect a change related to the
@xml:id
data type as i observe the following. Oxygen conveniently provides list of already present values of@xml:id
when adding anIDREF
typed attribute. This helpful list disappeared with version 4.4.0. I can reproduce the issue taking a sample document that contains something liketei:handNote/@xml:id
within thetei:teiHeader
and adding a@scribeRef
somewhere withintei:text
. With version 4.3.0 (<?xml-model href="https://tei-c.org/Vault/P5/4.3.0/xml/tei/custom/schema/relaxng/tei_all.rng"?>
) the list will be provided, pointing to 4.4.0 it is missing.