Free I10-002 Exam Braindumps (page: 3)

Page 2 of 21

Push the Exhibit Button to load the referenced "XML Document 1" and "XML Document 2," and process XML using "DOM Processing."

  1. <root2 xmlns="urn:xmlmaster:EX2">
    <data xmlns= " urn:xmlmaster:EX1 " >string value</data> </root2>
  2. <root2 xmlns="urn:xmlmaster:EX2">
    <data>string value</data>
    </root2>
  3. <root2 xmlns="urn:xmlmaster:EX2">
    <data xmlns= " urn:xmlmaster:EX1 " />
    </root2>
  4. <root2 xmlns="urn:xmlmaster:EX2">
    <data/>
    </root2>

Answer(s): A



Push the Exhibit Button to load the referenced "XML document".
[XML Document]
<root><data>lmnop</data></root>
Assume that the "XML Document" is changed to the "Results XML Document." Select which XSLT style sheet correctly performs the transformation. Note that the XSLT processor can output transformation results as a document.
[Results XML Document]
<ZZZ><YYY>lmnop</YYY></ZZZ>

  1. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:include href="exam.xsl" />
    <xsl:template match= " / " >
    <xsl:apply-templates select= " root " />
    </xsl:template>
    <xsl:template match= " root " >
    <AAA><BBB><xsl:value-of select= " data " /></BBB></AAA> </xsl:template>
    </xsl:stylesheet>
    [exam.xsl]
    <xsl:stylesheet version= " 1.0 " xmlns:xsl= " http://www.w3.org/1999/XSL/Transform " > <xsl:template match= " //root " >
    <ZZZ><YYY><xsl:value-of select= " data " /></YYY></ZZZ> </xsl:template>
    </xsl:stylesheet>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:import href="exam.xsl" />
    <xsl:template match= " / " >
    <xsl:apply-templates select= " root " />
    </xsl:template>
    <xsl:template match= " root " >
    <AAA><BBB><xsl:value-of select= " data " /></BBB></AAA> </xsl:template>
    </xsl:stylesheet>
    [exam.xsl]
    <xsl:stylesheet version= " 1.0 " xmlns:xsl= " http://www.w3.org/1999/XSL/Transform " > <xsl:template match= " //root " >
    <ZZZ><YYY><xsl:value-of select= " data " /></YYY></ZZZ> </xsl:template>
    </xsl:stylesheet>
  3. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:include href="exam.xsl" />
    <xsl:template match= " / " >
    <xsl:apply-templates select= " root " />
    </xsl:template>
    <xsl:template match= " root " >
    <AAA><BBB><xsl:value-of select= " data " /></BBB></AAA> </xsl:template>
    </xsl:stylesheet>
    [exam.xsl]
    <xsl:stylesheet version= " 1.0 " xmlns:xsl= " http://www.w3.org/1999/XSL/Transform " > <xsl:template match= " root " >
    <ZZZ><YYY><xsl:value-of select= " data " /></YYY></ZZZ> </xsl:template>
    </xsl:stylesheet>
  4. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:import href="exam.xsl" />
    <xsl:template match= " / " >
    <xsl:apply-templates select= " root " />
    </xsl:template>
    <xsl:template match= " root " >
    <AAA><BBB><xsl:value-of select= " data " /></BBB></AAA> </xsl:template>
    </xsl:stylesheet>
    [exam.xsl]
    <xsl:stylesheet version= " 1.0 " xmlns:xsl= " http://www.w3.org/1999/XSL/Transform " > <xsl:template match= " root " >
    <ZZZ><YYY><xsl:value-of select= " data " /></YYY></ZZZ> </xsl:template>
    </xsl:stylesheet>

Answer(s): A



Push the Exhibit Button to load the referenced "XML Document".
[XML Document]
<root><data>lmnop</data></root>
Assume that the "XML document" is changed to the "Results XML Document." Select which XSLT style sheet correctly performs the transformation.
Note that the XSLT processor can output transformation results as a document.
[Results XML Document]
<lmnop/>
Or

<lmnop></lmnop>

  1. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match= " / " >
    <xsl:apply-templates select= " root/data " />
    </xsl:template>
    <xsl:template match= " data " >
    <xsl:element name="<xsl:value-of select='.'/>"/>
    </xsl:template>
    </xsl:stylesheet>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match= " / " >

    <xsl:apply-templates select= " root/data " />
    </xsl:template>
    <xsl:template match= " data " >
    <xsl:element name="{ . }"/>
    </xsl:template>
    </xsl:stylesheet>
  3. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match= " / " >
    <xsl:apply-templates select= " root/data " />
    </xsl:template>
    <xsl:template match= " data " >
    <xsl:element name="."/>
    </xsl:template>
    </xsl:stylesheet>
  4. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match= " / " >
    <xsl:apply-templates select= " root/data " />
    </xsl:template>
    <xsl:template match= " data " >
    <xsl:text disable-output-escaping="no"><</xsl:text>
    <xsl:value-of select="."/>
    <xsl:text disable-output-escaping="no">/></xsl:text> </xsl:template>
    </xsl:stylesheet>

Answer(s): B



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



Assume that the character "3" is obtained from the "XML document". Select which XSLT style sheet correctly performs the transformation. (Multiple answers possible. Select two.)

  1. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match= " / " >
    <xsl:apply-templates select= " //data[x='1'][y='2'] " />
    </xsl:template>
    </xsl:stylesheet>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match= " / " >
    <xsl:apply-templates select= " //data[(attribute::x='1') and (text()='3')] " /> </xsl:template>
    </xsl:stylesheet>
  3. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match= " / " >
    <xsl:apply-templates select= " //data[self='3'] " /> </xsl:template>
    </xsl:stylesheet>
  4. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match= " / " >
    <xsl:apply-templates select= " //data[self::*='3'] " /> </xsl:template>
    </xsl:stylesheet>

Answer(s): B,D






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

I10-002 Exam Discussions & Posts