How can I restrict the cardinality of the param element when it has no attributes? I want it to have a max occurence of 1 (it behaves at app level as default param) So this is valid
<xml>
<param>value</param>
<param id="1">value</param>
<param id="2">value</param>
<param id="3">value</param>
</xml>
but this is not
<xml>
<param>value</param>
<param>value2</param>
<param id="1">value</param>
<param id="2">value</param>
<param id="3">value</param>
</xml>
So far, I tried with
a definition of both a param xs:element with no attirbute specified and another with attribute specified, wrapped within a xs:choice. But it does not allow me to use two elements with the same name