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

Jing: »first occurrence of ID "some"« is reported for all non-first instances #27

Open
michael-aka-mmh opened this issue Feb 17, 2016 · 1 comment

Comments

@michael-aka-mmh
Copy link

For each duplicate attribute id an error »ID "some" has already been defined« is reported. I think this is sufficient, maybe the text could be a little bit similar to what AHF itself reports for duplicate IDs.

The additional error »first occurrence of ID "some"« is misleading as it is raised for all but the first occurrence of the duplicate attribute and therefore just fills the error view.

My suggestion:

  • create an INFO entry for the real first occurrence of this id value (unless this is too time-consuming)
  • or remove that error

Thanks!

@tgraham-antenna
Copy link
Member

focheck uses Jing for ID and IDREF checking rather than using Schematron on the theory that Jing should be faster because the checking is built into the validator.

The only way to change the Jing error messages would be to override the messages file, but getting rid of the 'first occurrence of ID "some"' messages would require modifying Jing and getting oXygen to use the modified Jing. Both are doable, but both are more work for the user than just installing an add-on.

One day, I'll find time to check whether using Jing or using an xsl:key with the Schematron is faster for ID and IDREF checking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants