cancel
Showing results for 
Search instead for 
Did you mean: 

xslt mapping

Former Member
0 Kudos

in xslt mapping, for what purpose we use add template?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Normally we use <xsl:template match="/">

match="/" attribute associates the template with the root of the XML source document. The content inside the <xsl:template> element defines some HTML to write to the output.

Also refer: http://www.w3schools.com/xsl/el_template.asp

Regards

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

The <xsl:template> element is used to build templates.

The match attribute is used to associate a template with an XML element. The match attribute can also be used to define a template for the entire XML document. The value of the match attribute is an XPath expression (i.e. match="/" defines the whole document).

refer

http://www.w3schools.com/xsl/default.asp

Thanks

Gaurav