[xsd-users] is "warning T005" really needed? (use --polymorphic-type to indicate this type is polymorphic ...)

Boris Kolpackov boris at codesynthesis.com
Sun Apr 28 09:08:52 EDT 2013


Hi Erik,

Erik Sjölund <erik.sjolund at gmail.com> writes:

> I wonder if this type of warning is really needed?
> 
> info: use --polymorphic-type to indicate this type is polymorphic when
> compiling schemas that reference it
> /dev/shm/build1/person.xsd:23:44: warning T005: assuming type 'personType'
> is polymorphic

XSD issues this warning if a type is used in a substitution group
and the type and substitution group are defined in different files.
Without the --polymorphic-type option when compiling the schema
defining the type, XSD will treat it as non-polymorphic.

You can also suppress the warning by passing --disable-warning T005.

Boris



More information about the xsd-users mailing list