XSLT (XSL Transformations) Question:

What is XSL template? What output this XSL template will produce given a particular xml file?

Tweet Share WhatsApp

Answer:

This kind of XSL transformation questions are more popular to gauge real understanding of templates. they can write template in front of you and may ask you to explain, most simple example of this is writing Identity template as discussed in XSLT interview question
Alternatively they may give you XSL and XML file and ask you about about of transformation. This are tricky questions in XSL and in order to answer these question you need to be familiar with XSL language, which is the primary reason people ask it. On the other hand this is an excellent opportunity to show you how well you know about XSL working or how template executes, by clearly explaining what a particular template does.

Download XSLT PDF Read All 31 XSLT Questions
Previous QuestionNext Question
Do you know why we use select="@|node()" in the <xsl:apply-templates/> element on Identity template? What will happen if we use <xsl:apply-templates/> without select attribute?Explain how to retrieve value of an attribute for an element using XSLT?