OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

relax-ng message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Issue: are <optional>, <oneOrMore>, <zeroOrMore> verbose?


Currently, to declare optional attributes, we write 

<optional>
  <attribute ..>
  </attribute>
<optional>

To declare a collection of many optional attributes, we write 

<define name="commonAttributes">
<optional>
  <attribute ..>
  </attribute>
<optional>
<optional>
  <attribute ..>
  </attribute>
<optional>
...
<optional>
  <attribute ..>
  </attribute>
<optional>
</define>

Isn't this verbose?

Quite a few people in the XML Schema WG think that elements for */+/? are 
too verbose and have chosen "maxOccurs"" and minOccurs".  RELAX Core has chosen 
"occurs".

Cheers,

Makoto


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC