XML I10-002 Exam - Topic 6 Question 63 Discussion
Push the Exhibit Button to load the referenced "XML Document". Create an XML Schema Document for "XML Document". The definitions of this XML Schema Document require that the value of the level attribute of the record element must be singularly unique within the XML document, and further, that the level attribute of the scenario element must reference the value of the level attribute of the record element. Select which of the following correctly describes what should be written in " XML Schema " document (1).
A) <xs:element name='TestML' type='testmlType'>
< xs:unique name= ' LEVEL ' >
<xs:selector xpath= ' record ' />
<xs:field xpath= ' record/@level ' />
</ xs:unique >
< xs:ref name= ' levelRef ' refer= ' LEVEL ' >
<xs:selector xpath= ' scenario ' />
<xs:field xpath= ' scenario/@level ' />
</ xs:ref >
</xs:element>
B) <xs:element name='TestML' type='testmlType'>
< xs:unique name= ' LEVEL ' >
<xs:selector xpath= ' record ' />
<xs:field xpath= ' @level ' />
</ xs:unique >
< xs:ref name= ' levelRef ' refer= ' LEVEL ' >
<xs:selector xpath= ' scenario ' />
<xs:field xpath= ' @level ' />
</ xs:ref >
</xs:element>
C) <xs:element name='TestML' type='testmlType'>
< xs:key name= ' LEVEL ' >
<xs:selector xpath= ' record ' />
<xs:field xpath= ' record/@level ' />
</ xs:key >
< xs:keyref name= ' levelRef ' refer= ' LEVEL ' >
<xs:selector xpath= ' scenario ' />
<xs:field xpath= ' scenario/@level ' />
</ xs:keyref >
</xs:element>
D) <xs:element name='TestML' type='testmlType'>
< xs:key name= ' LEVEL ' >
<xs:selector xpath= ' record ' />
<xs:field xpath= ' @level ' />
</ xs:key >
< xs:keyref name= ' levelRef ' refer= ' LEVEL ' >
<xs:selector xpath= ' scenario ' />
<xs:field xpath= ' @level ' />
</ xs:keyref >
</xs:element>
Glory
8 months agoUna
8 months agoNieves
8 months agoTyra
8 months agoLuz
9 months agoAlberta
9 months agoPaola
9 months agoNichelle
9 months agoVinnie
9 months agoCeola
9 months agoSylvie
9 months agoBeatriz
9 months agoVannessa
10 months agoVallie
10 months agoFabiola
10 months agoGenevive
10 months agoNan
10 months agoVeronica
10 months agoRyan
1 year agoGlendora
1 year agoLaurel
1 year agoGracie
1 year agoReta
1 year agoFrancoise
1 year agoMollie
1 year agoBettye
1 year agoFrederica
1 year agoMickie
1 year agoMickie
1 year agoMickie
1 year agoXochitl
1 year agoDana
1 year agoJesusita
1 year agoJean
1 year agoIesha
1 year agoPamella
1 year agoRoyal
1 year agoTayna
1 year agoIra
1 year agoMirta
1 year agoMirta
1 year agoMirta
1 year agoRoyal
1 year ago