How can I empty this schema content model?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • robbobratt
    New Member
    • May 2011
    • 1

    How can I empty this schema content model?

    I have the following base schema definition:
    Code:
    <xs:group name="learningSummaryRef.content">
     <xs:sequence>
      <xs:sequence>
       <xs:group ref="topicmeta" minOccurs="0" maxOccurs="1"/>
      </xs:sequence>
     </xs:sequence>
    </xs:group>
    I try to redefine as:
    Code:
    <xs:group name="learningSummaryRef.content">
     <xs:sequence>
      <xs:sequence>
       <xs:group ref="topicmeta" minOccurs="0" maxOccurs="0"/>
      </xs:sequence>
     </xs:sequence>
    </xs:group>
    Xerces gives the following error:
    Code:
    rcase-Recurse.2: There is not a complete functional mapping between the particles.
    Code:
    src-redefine.6.2.2: Group 'learningSummaryRef.content' does not properly restrict the group it redefines; constraint violated:  'rcase-Recurse.2'.
    Can someone please tell me how to properly redefine this model as empty since the topicmeta element is emptiable.

    Thanks.
Working...