Hi, I have noticed the same problem using the 2.1.0E and have yet to be able to find a suitable resolution.
here is the relevant line in my XSD file:
<xs:element minOccurs="0" maxOccurs="1" name="contextual_giving">
I have also tried to add the nillable feature, and have yet to see any positive results:
<xs:element minOccurs="0" maxOccurs="1" nillable="true" name="contextual_giving">
finally, i ave also experimented changing the cardinality of the contextual_giving child elements so that they reflect the cardinality of this element and again had no positive results. In fact, the only way that I have been able to create optional elements in the alfresco WCM is to set the minOcurs="0" and the maxOccurs="2". It seems as though alfresco is having issues with optional elements with a cardinality of 0-1 because everything functions as expected if the minOccurs=0 and the maxOccurs= 2 (or anything greater than 1). However, this is not desirable because it allows for extraneous data to be inserted into the site.
Has there been any progress on this issue thus far? As this is a significant issue for the project I am currently building for a client, I have begun to get a hold of one of my contacts within alfresco to see if there is any sort of resolution in existence, or due to come out in the near future.
Thanks in advance,
Chris