
Figure 5.10: The resulting HTML document in a browser
Declaring HTML Entities in a Style Sheet
This style sheet has an internal DTD to declare the copy entity—an
HTML entity. HTML has many entities that XML does not recognize.
<!DOCTYPE xsl:stylesheet [
<!ENTITY copy “©”>
]>
Reorganizing the Source Tree
The list of keywords must appear in an HTML META element. The following
example extracts the keywords from the source tree, with the xsl:value-of
element.
<META NAME=”keywords”>
<xsl:attribute name=”CONTENT”>
<xsl:value-of select=”article/keywords”/>,
</xsl:attribute>
</META>
<META name=”keywords” content=”XML, XSL, style sheet, publishing, Web”>
CAUTION ...