Index
=>
Review Gap Fill
Fill in all the gaps by choosing a suitable word from each drop-down list, then press "Check" to check your answers.
XSLT is a language for
1.0
2.0
axes
CSS
input
JavaScript
navigating
parent
Saxon 9
text
transforming
validated
XHTML
XPath
xsl:apply-templates
xsl:stylesheet
xsl:template
XML documents into various kinds of output: XML, XHTML, HTML and
1.0
2.0
axes
CSS
input
JavaScript
navigating
parent
Saxon 9
text
transforming
validated
XHTML
XPath
xsl:apply-templates
xsl:stylesheet
xsl:template
. XSLT itself is expressed in XML, which means that it can be
1.0
2.0
axes
CSS
input
JavaScript
navigating
parent
Saxon 9
text
transforming
validated
XHTML
XPath
xsl:apply-templates
xsl:stylesheet
xsl:template
just like any other XML file. XSLT itself is very simple (it has a very small set of tags), but its power and expressiveness derive from its use of
1.0
2.0
axes
CSS
input
JavaScript
navigating
parent
Saxon 9
text
transforming
validated
XHTML
XPath
xsl:apply-templates
xsl:stylesheet
xsl:template
, a sophisticated language which is used for
1.0
2.0
axes
CSS
input
JavaScript
navigating
parent
Saxon 9
text
transforming
validated
XHTML
XPath
xsl:apply-templates
xsl:stylesheet
xsl:template
the XML tree structure. XPath allows you to move from any node in the tree to any other node, along a series of
1.0
2.0
axes
CSS
input
JavaScript
navigating
parent
Saxon 9
text
transforming
validated
XHTML
XPath
xsl:apply-templates
xsl:stylesheet
xsl:template
(
1.0
2.0
axes
CSS
input
JavaScript
navigating
parent
Saxon 9
text
transforming
validated
XHTML
XPath
xsl:apply-templates
xsl:stylesheet
xsl:template
::, child::, ancestor::, descendant::, preceding::, following::, preceding-sibling:: and following-sibling::).
A basic XSLT stylesheet consists of a small number of core elements, including the root element (<
1.0
2.0
axes
CSS
input
JavaScript
navigating
parent
Saxon 9
text
transforming
validated
XHTML
XPath
xsl:apply-templates
xsl:stylesheet
xsl:template
>), <xsl:output>, and <xsl:template>. Most stylesheets include a long list of <
1.0
2.0
axes
CSS
input
JavaScript
navigating
parent
Saxon 9
text
transforming
validated
XHTML
XPath
xsl:apply-templates
xsl:stylesheet
xsl:template
> elements, each of which contains a collection of rules to handle a particular node or set of nodes in the
1.0
2.0
axes
CSS
input
JavaScript
navigating
parent
Saxon 9
text
transforming
validated
XHTML
XPath
xsl:apply-templates
xsl:stylesheet
xsl:template
tree. One element causes all the processing to start: <
1.0
2.0
axes
CSS
input
JavaScript
navigating
parent
Saxon 9
text
transforming
validated
XHTML
XPath
xsl:apply-templates
xsl:stylesheet
xsl:template
/>.
Right now, there are three versions of XSLT. Version
1.0
2.0
axes
CSS
input
JavaScript
navigating
parent
Saxon 9
text
transforming
validated
XHTML
XPath
xsl:apply-templates
xsl:stylesheet
xsl:template
is widely supported by many processors, but it has serious limitations. Version
1.0
2.0
axes
CSS
input
JavaScript
navigating
parent
Saxon 9
text
transforming
validated
XHTML
XPath
xsl:apply-templates
xsl:stylesheet
xsl:template
is much more sophisticated, but so far there is only one good, free processor which supports it:
1.0
2.0
axes
CSS
input
JavaScript
navigating
parent
Saxon 9
text
transforming
validated
XHTML
XPath
xsl:apply-templates
xsl:stylesheet
xsl:template
. Version 3 is still in development, although Saxon 9 has some support for its new features.
One of the difficulties you will encounter when learning XSLT is that it's not enough just to learn the XPath and XSLT code; to make useful output, you also need to learn
1.0
2.0
axes
CSS
input
JavaScript
navigating
parent
Saxon 9
text
transforming
validated
XHTML
XPath
xsl:apply-templates
xsl:stylesheet
xsl:template
(to make the output document),
1.0
2.0
axes
CSS
input
JavaScript
navigating
parent
Saxon 9
text
transforming
validated
XHTML
XPath
xsl:apply-templates
xsl:stylesheet
xsl:template
(to style the output document), and possibly also
1.0
2.0
axes
CSS
input
JavaScript
navigating
parent
Saxon 9
text
transforming
validated
XHTML
XPath
xsl:apply-templates
xsl:stylesheet
xsl:template
(to make the document interactive).
Check
OK
Index
=>