Datasheet

Williams c01.tex V3 - 07/31/2009 2:53pm Page 24
Chapter 1: First Steps with XSLT
Key Points
A stylesheet processor uses built-in rules for processing by default.
You override these rules by using specific template rules to match elements
in an XML source document with XPath expressions.
You can specify different output methods in a stylesheet — XML, XHTML,
HTML and text — and define the preferred character encoding too.
Literal result elements and attributes are often used to define output struc-
tures.
Output element content is usually specified by selecting values in the source
with XPath expressions.
Always check for default namespace declarations in source files and set the
xpath-default-namespace
attribute on the
<xsl:stylesheet>
element to
this value.
24