I10-001 Free Dumps Study Materials
Question 7: Press the Exhibit button to view "XML Document". Select which of the following correctly describes the
results of applying "XSLT Stylesheet" to "XML Document". Assume that the input XML document and
transformation results ignore meaningless whitespace.
[XML Documents]
<product_list>
<LIST>Product_List</LIST>
<product name="pen">
<name lang="ja">Pen</name>
</product>
<product name="paper">
<name lang="ja">Paper</name>
</product>
</product_list>
[XSLT Stylesheet]
< xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<LIST>
<xsl:for-each select="/product_list/product">
<xsl:value-of select="name"/>
</xsl:for-each>
</LIST>
</xsl:template>
</xsl:stylesheet>
A. A file that does not contain any content will be output, because the XML document LIST element does
not contain a name attribute.
B. The following XML document will be output.
< xml version="1.0"?>
<LIST>PenPaper</LIST>
C. The following XML document will be output.
< xml version="1.0"?>
<LIST>
<name lang="jp">Pen</name>
<name lang="jp">Paper</name>
</LIST>
D. The following XML document will be output.
< xml version="1.0"?>
<LIST>
<name lang="jp">Pen</name>
<name lang="jp">Paper</name>
PenPaper
</LIST>
Correct Answer: B