[jdom-interest] "s4s-att-not-allowed" during parsing

Dieterich Hartmut Hartmut.Dieterich at icn.siemens.de
Thu Sep 26 10:07:47 PDT 2002


Hi,

using the default SAXBuilder-Constructor (whatever driver is behind of it in JDOM-b8, I don't know), I get the following two error messages during parsing which don't make much sense to me because it should be valid syntax according to the XML Schema definition as quoted below. Any hints?

=> s4s-att-not-allowed: Attribute 'use' cannot appear in element 'attribute'.
(source line is: <xsd:attribute name="enc" use="optional" default="ASC">)

=> s4s-att-not-allowed: Attribute 'minOccurs' cannot appear in element 'element'.
(source line is: <xsd:element name="acc" minOccurs="0" type="accType"/>)

Best Regards,

	Hartmut

--------------------------------------------------------------
Hartmut Dieterich
Siemens AG, ICM N PG ES MDD B
Location Dependent Services
Geisenhausener Straße 17
81359 München
Tel     +49-89-722-28221
Fax    +49-89-722-35752
Email   Hartmut.Dieterich at icn.siemens.de
--------------------------------------------------------------


------------------------------------------------------------------------------ XML Schema Excerpt -------------------------------------------------

		<attribute 
		default = string <http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/datatypes.html> 
		fixed = string <http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/datatypes.html> 
		form = (qualified | unqualified)
		id = ID <http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/datatypes.html> 
		name = NCName <http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/datatypes.html> 
		ref = QName <http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/datatypes.html> 
		type = QName <http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/datatypes.html> 
		use = (optional | prohibited | required) : optional
		{any attributes with non-schema namespace . . .}>
		Content: (annotation?, (simpleType?))
		</attribute>


		<element 
		abstract = boolean <http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/datatypes.html> : false
		block = (#all | List of (extension | restriction | substitution)) 
		default = string <http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/datatypes.html> 
		final = (#all | List of (extension | restriction)) 
		fixed = string <http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/datatypes.html> 
		form = (qualified | unqualified)
		id = ID <http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/datatypes.html> 
		maxOccurs = (nonNegativeInteger <http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/datatypes.html> | unbounded) : 1
		minOccurs = nonNegativeInteger <http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/datatypes.html> : 1
		name = NCName <http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/datatypes.html> 
		nillable = boolean <http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/datatypes.html> : false
		ref = QName <http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/datatypes.html> 
		substitutionGroup = QName <http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/datatypes.html> 
		type = QName <http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/datatypes.html> 
		{any attributes with non-schema namespace . . .}>
		Content: (annotation?, ((simpleType | complexType)?, (unique | key | keyref)*))
		</element>

--------------------------------------------------------------- End of XML Schema snippet --------------------------------------------------





More information about the jdom-interest mailing list