Skip to Content
XSLT and XPATH: A Guide to XML Transformations
book

XSLT and XPATH: A Guide to XML Transformations

by John Robert Gardner, Zarella L. Rendon
July 2001
Intermediate to advanced
592 pages
11h 16m
English
Pearson
Content preview from XSLT and XPATH: A Guide to XML Transformations

3.1. Templates: The Building Blocks of Transformations

In the simplest sense, a template is a model. In XSLT, a template has a very specific structure, consisting of 18 instruction elements, LREs, extension elements, and text.

There are eleven elements that can contain templates: <xsl:template>, <xsl:if>, <xsl:when>, <xsl:otherwise>, <xsl:with-param>, <xsl:variable>, <xsl:param>, <xsl:element>, <xsl:copy>, <xsl:message>, and <xsl:fallback>. The most important and frequently used top-level element that can contain a template is the <xsl:template> element. This element is discussed in detail in Section 3.1.2.

template: An instrument used as a gauge or guide in bringing any piece of work to the desired shape … a molecule or molecular pattern that ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning XSLT and XPath: Transforming XML Documents and Data

Beginning XSLT and XPath: Transforming XML Documents and Data

Ian Williams
Java and XSLT

Java and XSLT

Eric M. Burke
Learning XSLT

Learning XSLT

Michael Fitzgerald

Publisher Resources

ISBN: 0130404462Purchase book