xsl xml template

In world of xslt and xml when we say template what it exactly means.
Is it is XML template or XSLT template.

when and how we use it.

what it means by default and custom template.
please advise
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

First a XSLT file itself could be called a template for short.

Second, there is the XSLT directive <xsl:template>
It's usage is dual:
It could be used when the XSLT processor finds a match between the pattern defined in the template's match attribute and the node either explicitly selected (using the <xsl:apply-templates select="node to select"/>) or the current node of the default template (see below).
And template could be also called by name (defined in its name attribute), just a regular structural language subroutine:
<xsl:call-template name="some-template-name"/>

The default template is embedded into the XSLT processor and is called when no matched template found in the XSLT file.
What the default template does, it just outputs the text nodes and asks the processor to find a matched template for children nodes.
Hope my explanation is understandable.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.