Case 3-2
Judy has begun to apply the basic information that you have given her about schemas, and she would now like your help in mastering the details of how schemas work.
Judy has included the following element definition in her schema:
<xs:element name="ingredient">
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="xs:string" />
<xs:element name="amount" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
-Judy would like to indicate that the ingredient element must appear at least once in a recipe, and that it cannot appear more than 20 times. Which of the following should she add to the element declaration to indicate these restrictions?
A) occurs="1:20"
B) occurs="[1:20]"
C) use="1:20"
D) minOccurs="1" maxOccurs="20"
Correct Answer:
Verified
Q43: The _ facet has three values: preserve,
Q52: Derived data types share many of the
Q56: Q60: A list data type uses _ as Q60: The _ data type is a text Q62: Case 3-1 Q62: The _ value of the use attribute Q66: The _ value of the use attribute
Judy wants to be able to
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents