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
6 months agoUna
6 months agoNieves
7 months agoTyra
7 months agoLuz
7 months agoAlberta
7 months agoPaola
8 months agoNichelle
8 months agoVinnie
8 months agoCeola
8 months agoSylvie
8 months agoBeatriz
8 months agoVannessa
8 months agoVallie
8 months agoFabiola
8 months agoGenevive
8 months agoNan
8 months agoVeronica
8 months agoRyan
1 year agoGlendora
11 months agoLaurel
12 months agoGracie
12 months agoReta
1 year agoFrancoise
12 months 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