views:

41

answers:

1

I have a WSDL with some types defined. Some elements accept lists of elements and on the service return I also have elements with list of values (or other elements).

As a result I have some magic numbers in the XSD (e.g. minOccurs="10", maxOccurs="250" etc). These values 10, 250 etc are repeated throughout the XSD types.

Is there a way to declare them as some sort of constants? and then reuse them by name for the minOccurs and maxOccurs attributes?

+1  A: 

No there isn't. The only thing you could do is to pre-process the schema using some sort of template processor before loading.

xcut