1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <xsl:stylesheet version=
"1.0" xmlns:
xhtml=
"http://www.w3.org/1999/xhtml"
3 xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform">
5 <!-- Any elements not otherwise specified will be stripped but the contents
6 will be displayed. All attributes are stripped from copied elements. -->
8 <!-- Block these elements and their contents -->
9 <xsl:template match=
"xhtml:head|xhtml:script|xhtml:style">
12 <!-- Allowable styling elements -->
13 <xsl:template match=
"xhtml:b|xhtml:i|xhtml:em|xhtml:strong|xhtml:u|xhtml:q|xhtml:sub|xhtml:sup|xhtml:code">
14 <xsl:copy><xsl:apply-templates/></xsl:copy>
17 <!-- Allowable block formatting elements -->
18 <xsl:template match=
"xhtml:h1|xhtml:h2|xhtml:h3|xhtml:p|xhtml:div|xhtml:blockquote|xhtml:pre">
19 <xsl:copy><xsl:apply-templates/></xsl:copy>
22 <!-- Allowable list formatting elements -->
23 <xsl:template match=
"xhtml:ul|xhtml:ol|xhtml:li|xhtml:dl|xhtml:dt|xhtml:dd">
24 <xsl:copy><xsl:apply-templates/></xsl:copy>
27 <!-- These elements are copied and their contents dropped -->
28 <xsl:template match=
"xhtml:br|xhtml:hr">
32 <!-- The root document -->
33 <xsl:template match=
"/">
34 <xhtml:body><xsl:apply-templates/></xhtml:body>