Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

some questions on xml/xslt

 
Ravi Nistala
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) <customer id="2">
<name>SwellMobile</name>
<address><city>Kansas City</city><state>MO</state></address>
<purchase id="124" totalCost="984.30">
<item id="123" quantity="27" />
<item id="456" quantity="13" />
</purchase>
</customer>

Assume that the function XMLCOLUMN("cust.data") returns the XML documents from the database. Which of the following XQuery statements returns an XML document containing the distinct states where the customers are located?
2)Which of the following is NOT a concern when refactoring the STRUCTURE of an XML document?
(only 1 is correct)
A.Element naming convention.
B.Ease of Authoring.
C.Ease of Processing.
D.Levels of element nesting.

3)What is the result of the following XSLT template?

<xsl:template name="Do">
<xsl:param name="j" select="1"/>
<xsl:if test="$j <= 5">
<xsl:value-of select="$j"/>
<xsl:call-template name="Do">
<xsl:with-param name="j" select="$j + 1"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic