B. Quessel wrote: > > I am trying to use a specific relaxng schema (/XXX.rnc/ as > referred to by /tei.xxe/) for TEI based files. When loading the attached > file (/ZZZ.xml/) the result is a list of document type errors > (/errormessage.jpg/). The file and schema validate without problem in > oxygen.
(Sorry because the problem is quite a technical one.) Oxygen does not seem to comply with this specification: RELAX NG DTD Compatibility http://relaxng.org/compatibility-20011203.html --- 3. Attribute default values ... A correct RELAX NG schema is compatible with this feature if after schema simplification, for each attribute element that has an a:defaultValue attribute, all of the following hold: ... * any ancestor that is a choice element has one child that is an empty element * it has at least one choice ancestor ... --- In plain English, this means that a required attribute cannot have a default value. But may be Oxygen is right and we are wrong because the above specification has been superseded by a more lenient one. (To our knowledge, this is not the case.) > > The relax schema file was created from an odd file using Roma > http://www.tei-c.org/Roma In principle, we don't provide any support for TEI. Therefore if you have problems with your third-party TEI configuration, we'll not be able to help you. > > It seems that the XXE error message window does not display the complete > message - which makes it even more difficult for me to understand what > is going on. xmltool which is part of the distribution of XXE reports the following messages: C:\tmp> xmltool validate -s XXX.rnc --- ERROR: file:/home/hussein/tmp/tei_XXX/XXX.rnc:2113:3:Document Type Error: element "{http://www.tei-c.org/ns/1.0}handNote": required attribute "scope" cannot have a default value ERROR: file:/home/hussein/tmp/tei_XXX/XXX.rnc:2113:3:Document Type Error: element "{http://www.tei-c.org/ns/1.0}handNote": required attribute "script" cannot have a default value ERROR: file:/home/hussein/tmp/tei_XXX/XXX.rnc:2607:3:Document Type Error: element "{http://www.tei-c.org/ns/1.0}dimensions": required attribute "type" cannot have a default value ERROR: file:/home/hussein/tmp/tei_XXX/XXX.rnc:4047:3:Document Type Error: element "{http://www.tei-c.org/ns/1.0}person": required attribute "sex" cannot have a default value ERROR: file:/home/hussein/tmp/tei_XXX/XXX.rnc:2828:3:Document Type Error: element "{http://www.tei-c.org/ns/1.0}altIdentifier": required attribute "type" cannot have a default value ERROR: file:/home/hussein/tmp/tei_XXX/XXX.rnc:2999:3:Document Type Error: element "{http://www.tei-c.org/ns/1.0}objectDesc": required attribute "form" cannot have a default value ERROR: file:/home/hussein/tmp/tei_XXX/XXX.rnc:2121:5:Document Type Error: attribute "script": default value "other" is invalid ERROR: file:/home/hussein/tmp/tei_XXX/XXX.rnc:3381:3:Document Type Error: element "{http://www.tei-c.org/ns/1.0}custEvent": required attribute "type" cannot have a default value ERROR: file:/home/hussein/tmp/tei_XXX/XXX.rnc:1665:3:Document Type Error: element "{http://www.tei-c.org/ns/1.0}biblScope": required attribute "type" cannot have a default value ERROR: file:/home/hussein/tmp/tei_XXX/XXX.rnc:3026:3:Document Type Error: element "{http://www.tei-c.org/ns/1.0}supportDesc": required attribute "material" cannot have a default value ERROR: file:/home/hussein/tmp/tei_XXX/XXX.rnc:4636:3:Document Type Error: element "{http://www.tei-c.org/ns/1.0}supplied": required attribute "reason" cannot have a default value ERROR: file:/home/hussein/tmp/tei_XXX/XXX.rnc:1055:3:Document Type Error: element "{http://www.tei-c.org/ns/1.0}gap": required attribute "reason" cannot have a default value ERROR: file:/home/hussein/tmp/tei_XXX/XXX.rnc:1197:3:Document Type Error: element "{http://www.tei-c.org/ns/1.0}name": required attribute "type" cannot have a default value ERROR: file:/home/hussein/tmp/tei_XXX/XXX.rnc:3626:3:Document Type Error: element "{http://www.tei-c.org/ns/1.0}region": required attribute "type" cannot have a default value ERROR: file:/home/hussein/tmp/tei_XXX/XXX.rnc:2573:3:Document Type Error: element "{http://www.tei-c.org/ns/1.0}msDesc": required attribute "xml:lang" cannot have a default value ERROR: file:/home/hussein/tmp/tei_XXX/XXX.rnc:1969:3:Document Type Error: element "{http://www.tei-c.org/ns/1.0}availability": required attribute "status" cannot have a default value --- The above error messages are quite easy to fix. Simply remove the a:defaultValue annotation from the all above required attributes. For example, remove: --- [ a:defaultValue = "sole" ] --- from: --- ## specifies how widely this hand is used in the manuscript. [ a:defaultValue = "sole" ] attribute scope { ## "sole" | ## "major" | ## "minor" }, --- More info about xmltool: http://www.xmlmind.com/xmleditor/_distrib/doc/xmltool/index.html -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

