Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

constraintSpec inside attDef output is both ugly and wrong #482

Closed
sydb opened this issue Dec 20, 2020 · 7 comments
Closed

constraintSpec inside attDef output is both ugly and wrong #482

sydb opened this issue Dec 20, 2020 · 7 comments
Assignees
Labels
conversion: html resp: council resp: StylesheetsGroup Issue is suitable for the group-learning approach taken in the Stylesheets Coop Working Group. type: bug A bug report.

Comments

@sydb
Copy link
Member

sydb commented Dec 20, 2020

We have only two elements which have a <constraintSpec> inside an <attDef>: <moduleRef> and <variantEncoding>. (We have lots of attribute classes that sport an <constraintSpec> inside an <attDef>, but they are not problematic, because the “Schema Declaration” is not displayed on their tagdocs. Not sure why not.)

In both cases a large chunk of the “Schema Declaration” of the HTML output (and probably PDF and ePub, but notably not the output RELAX NG) looks awful. On slightly closer examination, it not only looks awful, it does not correctly represent the Schematron. Not even close. (Well, maybe you could call it close — in some sense it represents the <constraint> itself, I think.)

@sydb sydb added type: bug A bug report. resp: council resp: StylesheetsGroup Issue is suitable for the group-learning approach taken in the Stylesheets Coop Working Group. conversion: html labels Dec 20, 2020
@sydb sydb added this to the Release 7.51.0 milestone Dec 20, 2020
@martindholmes
Copy link
Contributor

Wow, that does look bad:

https://tei-c.org/release/doc/tei-p5-doc/en/html/ref-moduleRef.html

This seems like it shouldn't be too difficult to fix. The Schematron seems nicely-laid-out in the attribute definition itself, it's just that it shows up all borked in the schema declaration. This should be release-blocking.

@sydb
Copy link
Member Author

sydb commented Jan 3, 2021

I do not think it makes sense to make this release-blocking: it has been around since 2.8.0 was released in April 2015, and no one has complained until now. I am pretty confident that the borking (as you put it, @martindholmes) has to do with the fact that the XML <constraint> is converted somehow to an XHTML <tr> before being handed to trang to be converted to compact syntax.

@martindholmes
Copy link
Contributor

@sydb Idon't think the fact that something has been around for a long time should have any bearing on whether it's release-blocking. If it's egregious and fixable it should be fixed before the next release, no?

@sydb
Copy link
Member Author

sydb commented Jan 3, 2021

Sure, it should be fixed before the next release. But I don’t think the next release should be delayed or canceled if, perchance, it is not fixed in time.

@hcayless
Copy link
Member

hcayless commented Nov 4, 2021

What, precisely, are you complaining about here? We're looking at this in the Stylesheets group and are thoroughly confused...

@martindholmes
Copy link
Contributor

Looks like this was fixed between 4.2.0 and 4.2.1 -- look at the bottom of this page and you'll see the original problem:

https://tei-c.org/Vault/P5/4.2.0/doc/tei-p5-doc/en/html/ref-moduleRef.html

Should be OK to close it now, though.

@martinascholger
Copy link
Member

True, that was one reason for the 4.2.1 release. Closing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conversion: html resp: council resp: StylesheetsGroup Issue is suitable for the group-learning approach taken in the Stylesheets Coop Working Group. type: bug A bug report.
Projects
None yet
Development

No branches or pull requests

5 participants