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
9 months agoUna
9 months agoNieves
10 months agoTyra
10 months agoLuz
10 months agoAlberta
10 months agoPaola
11 months agoNichelle
11 months agoVinnie
11 months agoCeola
11 months agoSylvie
11 months agoBeatriz
11 months agoVannessa
11 months agoVallie
11 months agoFabiola
11 months agoGenevive
11 months agoNan
11 months agoVeronica
11 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