XSLT (XSL Transformations) Question:
Download Questions PDF

How you define template in XSLT?


When XSL style sheet has one or more set of rules are told as templates.
We used <xsl:template> element to create templates.
We can attach a template with an XML document by using match attribute.The match attribute value is an XPath exprssion.Like: match="/" use to define whole document.
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
<xsl:template match="/">
<h2> Book Collection </h2>
<table border="1">
<tr bgcolor="#9acd32">

Download XSLT Interview Questions And Answers PDF

Previous QuestionNext Question
How to use <xsl:sort>element in XSLT?How to transform an XML into XHTML?