RE: Formalism in SOAP spec

If I could add some analysis ...

	I sent the XML Schema for SOAP 1.2
http://www.w3.org/2001/09/soap-encoding through
the "Schema Quality Checker" from IBM.  The following
errors were generated:

	Initializing Schema Quality Checker. Please wait ...
	SchemaQualityChecker has been initialized
	PROCESSING C:\Work\SOAP\soap_enc_orig.xsd time :
2001-11-14T12:44:02 ...
	C:\Work\SOAP\soap_enc_orig.xsd (file 1 of 1) now being read ...
	ERROR
	file = file:C:/Work/SOAP/soap_enc_orig.xsd line 224 column 55
	SEVERITY: 1
	ERROR TYPE: 2
	MESSAGE
	The global simpleType
http://www.w3.org/2001/09/soap-encoding:NOTATION
	is not found.
 
------------------------------------------------------------------
	ERROR
	file = file:C:/Work/SOAP/soap_enc_orig.xsd line 231 column 20
	SEVERITY: 1
	ERROR TYPE: 2
	MESSAGE
	complexType http://www.w3.org/2001/09/soap-encoding:NOTATION
	requires the following facets :
	enumeration
	
------------------------------------------------------------------

I believe there are two error conditions that are
causing this:

	1) An <attribute> (specifically the
	"NOTATION" attribute) cannot have a
	'type' that is a <complexType>.
	Perhaps the NOTATION <complexType> should've
	been declared as a <simpleType> ... or
	perhaps the <attribute> NOTATION was
	really meant to be an <element>.

	2) Use of the NOTATION (built-in Schema
	type) requires that (one of?) the facets:
		length 
		minLength 
		maxLength 
		pattern 
		enumeration 
		whiteSpace
	be used.

Please note that I had to add the XML prolog:
	<?xml version = '1.0' encoding = 'UTF-8'?>
to the Schema document ... which I believe is required.

	Also, if I could suggest that naming of an
<attribute> (e.g. "NOTATION") that is the same as
a <complexType> that is also a "built-in" Schema type
is confusing.  Although it is "legal" Schema (an
exercise in namespacing?), it is difficult to read.

Thank you.

Tim MacAndrew
NetSilicon Inc - Softworks Group
TMacAndrew@NetSilicon.com

Reference: http://www.alphaworks.ibm.com/tech/xmlsqc

Received on Wednesday, 14 November 2001 16:38:38 UTC