XML I10-002 - XML Master: Professional V2 Exam
Page: 3 / 8
Total 40 questions
Question #11 (Topic: )
Which of the following text strings is not output to the results document when performing an
XSLT transformation on the following "XML Document" using the "XSLT Style Sheet"
below?
Note that the XSLT processor can output transformation results as a document.
XSLT transformation on the following "XML Document" using the "XSLT Style Sheet"
below?
Note that the XSLT processor can output transformation results as a document.
A. doc
B. NS1:title
C. body
D. NS1:section
E. NS1:content
Answer: C
Question #12 (Topic: )
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.)
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.)
A. <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>
B. <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>
C. <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>
D. <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: B,D
Question #13 (Topic: )
Which of the following correctly describes the output results when performing an XSLT
tranformation on the following "XML Document" using the "XSLT Style Sheet" below?
Note that the XSLT processor can output transformation results as a document.
tranformation on the following "XML Document" using the "XSLT Style Sheet" below?
Note that the XSLT processor can output transformation results as a document.
A. <data/>
B. <data>Tokyo</data>
C. <data xml:lang="en">Tokyo</data>
D. <data xml:lang="ja-JP">Tokyo</data>
Answer: C
Question #14 (Topic: )
Push the Exhibit Button to load the referenced "XSLT Style Sheet".
Select which of the following correctly describes the output results of an XSLT
transformation of the "XML Document" using the "XSLT Style Sheet". Note that the XSLT
processor can output transformation results as a document. Line feeds and indents are not
reflected.
[XML-I10-002-6.0/XML-I10-002-12_2.png]
Select which of the following correctly describes the output results of an XSLT
transformation of the "XML Document" using the "XSLT Style Sheet". Note that the XSLT
processor can output transformation results as a document. Line feeds and indents are not
reflected.
[XML-I10-002-6.0/XML-I10-002-12_2.png]
A. <record> <data value="89"/> <data value="70"/> </record>
B. <record xmlns="urn:xmlmaster:B"> <data value="89"/> <data value="70"/> </record>
C. <record xmlns="urn:xmlmaster:B"> <data B:value="89" xmlns:B="urn:xmlmaster:B"/> <data B:value="70" xmlns:B="urn:xmlmaster:B"/> </record>
D. <record> <data value="89" xmlns="urn:xmlmaster:A"/> <data value="70" xmlns="urn:xmlmaster:A"/> </record>
E. <record> <data B:value="89" xmlns="urn:xmlmaster:A" xmlns:B="urn:xmlmaster:B"/> <data B:value="70" xmlns="urn:xmlmaster:A" xmlns:B="urn:xmlmaster:B"/> </record>
Answer: B
Question #15 (Topic: )
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 cellPhone 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 schemaLocation attribute.
[XML-I10-002-6.0/XML-I10-002-14_2.png]
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 cellPhone 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 schemaLocation attribute.
[XML-I10-002-6.0/XML-I10-002-14_2.png]
A. Option A
B. Option B
C. Option C
D. Option D
Answer: C