#161 Validation of TEI Lite DTD fails

1.2.1
closed-fixed
nobody
5
2014-04-07
2009-09-14
No

Validation of a simple TEI P5 (TEI Lite) DTD fails consistently with this error message:

Validation stopped at line 3, column 36: Element '_DUMMY_model.resourceLike' was referenced in a content model but never
declared

Very easy to replicate: just generate a TEI Lite DTD with Roma (http://www.tei-c.org/Roma/), create a new XML document with XCE pointing to that DTD and try to validate it. Note that if you create a tei_all.dtd (again using Roma) validation is done without problems.

Using XCE 1.2.0.4 under Linux, also tested this behaviour under Windows using 1.2.0.2.

RRDT

Related

Discussion: Validating Docbook 5

Discussion

  • Today (2009-12-29) I tried the latest versions: validation still fails under Linux (v. 1.2.0.6), now works under Windows (v. 1.2.0.7).

    RRDT

     
  • Zane U. Ji
    Zane U. Ji
    2013-12-20

    • status: open --> open-accepted
    • Group: --> v1.2.0.12
     
  • Zane U. Ji
    Zane U. Ji
    2013-12-20

    It's a warning rather than an error. The validation shouldn't stop. Displaying it should be enough.

    Here is the patch [4f9728], if anybody is interested.

     

    Related

    Commit: [4f9728]

  • Zane U. Ji
    Zane U. Ji
    2014-01-11

    • status: open-accepted --> closed-fixed
     
  • Zane U. Ji
    Zane U. Ji
    2014-01-11

    Please let me know if I missed anything.

     
  • Hello Zane,
    it seems the bug is still there unfortunately: I'm using the latest version of XCE (V. 1.2.0.12) and associating a TEI Lite DTD stops the validation process with a bunch of "DUMMY_model.* is referenced etc." warnings. Attaching the aforementioned DTD, any chance that XCE will support RNG schemas in the future?

    Thank you for looking into this.

    RRDT

     
    Attachments
  • Zane U. Ji
    Zane U. Ji
    2014-03-25

    Warnings are safe to be ignored. They haven't been hidden because I found that they are helpful when working on a new XML.

     
  • Thank you for your prompt reply. Let me add a little context: I teach text encoding in a Digital Humanities course, I suggest XCE to my students because it's light-weight, free and perfect for their needs. After teaching them what "well formed" means I move to web-validated texts and then to customized schemas. Now, while XCE works perfectly in the first two cases, with clear "Document is well formed|valid" results, the warnings they read in the third one are puzzling for them, because they think something has gone wrong with their local/customized schema, or the XML document itself.

    Actually, I am not sure of what happens either: when I see the warnings does it mean that the document is valid or not? because no "Document X is valid" message is printed out, which is quite confusing to the user.

    Considering that the primary function of any validation process should be returning a yes|no answer, I would suggest that XCE would return this answer first, showing the warnings below it, or in a separate area of the program window. This way the user could have both the assuredness of the current status of their documents, and the warnings about the schema to read in case of need.

    Thank you again,

    RRDT

     
  • Zane U. Ji
    Zane U. Ji
    2014-03-27

    Good suggestion.

     
  • Zane U. Ji
    Zane U. Ji
    2014-03-27

    • status: closed-fixed --> open-accepted
    • Group: v1.2.0.12 --> 1.2.1
     
  • Zane U. Ji
    Zane U. Ji
    2014-03-29

    Here is the patch [aae72b].

     

    Related

    Commit: [aae72b]

  • Zane U. Ji
    Zane U. Ji
    2014-04-06

    Please let me know if I missed anything.

     
  • Zane U. Ji
    Zane U. Ji
    2014-04-06

    • status: open-accepted --> closed-fixed
     
  • Hello again Zane,
    thank you for fixing this issue so quickly. I see a new release is out, going to test it asap. As an off topic question: to have a 64 bit build of XCE I should download the .tar.gz archive, unpack it and compile the source code, correct?

    RRDT