Free I10-002 Exam Braindumps (page: 4)

Page 3 of 21

What must you write in XSLT style sheet (1) to process the following "XML Document" and obtain the following "transform results"? Select the correct answer below. Note that "#" indicates a line feed, and "=*" indicates a tab. Assume that the XSLT processor can output transformation results as a document.

  1. Nothing needs to be written.
  2. <xml:space="preserve"/>
  3. <xsl:preserve-space elements="content"/>
  4. <xsl:strip-space elements="doc body"/>

Answer(s): D



Push the Exhibit Button to load the referenced "XML Document".

  1. <record>
    <data>100</data>
    </record>
  2. <record xmlns="urn:xmlmaster:test">
    <data>100</data>
    </record>
  3. <record xmlns="urn:xmlmaster:test">
    <data xmlns= "" >100</data>
    </record>
  4. <record>
    <data>100</data>
    <data>70</data>
    </record>
  5. <record xmlns="urn:xmlmaster:test">
    <data>100</data>
    <data>70</data>
    </record>
  6. <record xmlns="urn:xmlmaster:test">
    <data xmlns= "" >100</data>
    <data xmlns= "" >70</data>
    </record>

Answer(s): F



Push the Exhibit Button to load the referenced "testml.xsd".



Assume that "testml.xsd" is defined. Without rewriting this XML Schema Document ("testml.xsd"), create a new, separate XML Schema Document to partially change the schema definition to write a cell Phone element as a child element of the person element. As a result, the following "XML

Document" will be valid against the new schema.
Which of the following correctly describes the new XML Schema Document? Assume the XML parser correctly processes the XML schema Location attribute.
[XML.Documet]
<TestML>
<person>
<name>John Smith</name>
<phone>03-000-999</phone>
<cellPhone>00-1111-2222</cellPhone>
</person>
</TestML>

  1. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:import schemaLocation="testml.xsd" />
    <xs:complexType name="personType">
    <xs:sequence>
    <xs:element ref= " name " />
    <xs:element ref= " phone " />
    <xs:element ref= " cellPhone " />
    </xs:sequence>
    </xs:complexType>
    <xs:element name= " cellPhone " type= " xs:string " /> </xs:schema>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:include schemaLocation="testml.xsd" />
    <xs:complexType name="newPersonType" substitutionGroup="personType"> <xs:sequence>
    <xs:element ref= " name " />
    <xs:element ref= " phone " />
    <xs:element ref= " cellPhone " />
    </xs:sequence>
    </xs:complexType>
    <xs:element name= " cellPhone " type= " xs:string " /> </xs:schema>
  3. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:redefine schemaLocation= " testml.xsd " >
    <xs:complexType name= " personType " >
    <xs:complexContent>
    <xs:extension base= " personType " >
    <xs:sequence>
    <xs:element ref= " cellPhone " />
    </xs:sequence>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>
    </xs:redefine>
    <xs:element name= " cellPhone " type= " xs:string " /> </xs:schema>
  4. It is not possible to implement a function of the type proposed.

Answer(s): C



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).

  1. <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>
  2. <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>
  3. <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>
  4. <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>

Answer(s): D






Post your Comments and Discuss XML Master I10-002 exam with other Community members:

I10-002 Exam Discussions & Posts