TEIC / TEI

The Text Encoding Initiative Guidelines
https://www.tei-c.org
Other
268 stars 88 forks source link

teidata.pointer too restrictive #2468

Open hcayless opened 9 months ago

hcayless commented 9 months ago

The definition of teidata.pointer excludes one perfectly valid URI form, and that is the empty string, "", i.e. a same-document relative URI reference. The current definition is:

<content>
 <dataRef restriction="\S+" name="anyURI"/>
</content>

We should remove the @restriction immediately. No deprecation period necessary.

sydb commented 9 months ago

I do not think we should remove the @restriction, as it is what prevents spaces inside URIs, which we have decided not to permit. Perhaps we should change it to "\S-*" (which is how teidata.namespace is defined) instead, thus allowing "" as a valid URI.

Although it is also worth considering whether we would want to leave teidata.pointer alone, and add | "" to the definition of those cases for which a relative URI to the same document might make sense. Hmmm …

sydb commented 9 months ago

P.S. I agree that with either solution (change teidata.pointer to use restriction="\S*" rather than restriction="\S+", OR leave teidata.pointer alone and manually add the empty string as a possible value to some attributes) no deprecation period is necessary.