XML Master I10-002 Exam
XML Master Professional Application Developer (Page 3 )

Updated On: 12-Feb-2026

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



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






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

Join the I10-002 Discussion