Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
michael@0 | 2 | <!-- This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | - License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
michael@0 | 5 | |
michael@0 | 6 | <xsl:stylesheet version="1.0" xmlns:xhtml="http://www.w3.org/1999/xhtml" |
michael@0 | 7 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
michael@0 | 8 | |
michael@0 | 9 | <!-- Any elements not otherwise specified will be stripped but the contents |
michael@0 | 10 | will be displayed. All attributes are stripped from copied elements. --> |
michael@0 | 11 | |
michael@0 | 12 | <!-- Block these elements and their contents --> |
michael@0 | 13 | <xsl:template match="xhtml:head|xhtml:script|xhtml:style"> |
michael@0 | 14 | </xsl:template> |
michael@0 | 15 | |
michael@0 | 16 | <!-- Allowable styling elements --> |
michael@0 | 17 | <xsl:template match="xhtml:b|xhtml:i|xhtml:em|xhtml:strong|xhtml:u|xhtml:q|xhtml:sub|xhtml:sup|xhtml:code"> |
michael@0 | 18 | <xsl:copy><xsl:apply-templates/></xsl:copy> |
michael@0 | 19 | </xsl:template> |
michael@0 | 20 | |
michael@0 | 21 | <!-- Allowable block formatting elements --> |
michael@0 | 22 | <xsl:template match="xhtml:h1|xhtml:h2|xhtml:h3|xhtml:p|xhtml:div|xhtml:blockquote|xhtml:pre"> |
michael@0 | 23 | <xsl:copy><xsl:apply-templates/></xsl:copy> |
michael@0 | 24 | </xsl:template> |
michael@0 | 25 | |
michael@0 | 26 | <!-- Allowable list formatting elements --> |
michael@0 | 27 | <xsl:template match="xhtml:ul|xhtml:ol|xhtml:li|xhtml:dl|xhtml:dt|xhtml:dd"> |
michael@0 | 28 | <xsl:copy><xsl:apply-templates/></xsl:copy> |
michael@0 | 29 | </xsl:template> |
michael@0 | 30 | |
michael@0 | 31 | <!-- These elements are copied and their contents dropped --> |
michael@0 | 32 | <xsl:template match="xhtml:br|xhtml:hr"> |
michael@0 | 33 | <xsl:copy/> |
michael@0 | 34 | </xsl:template> |
michael@0 | 35 | |
michael@0 | 36 | <!-- The root document --> |
michael@0 | 37 | <xsl:template match="/"> |
michael@0 | 38 | <xhtml:body><xsl:apply-templates/></xhtml:body> |
michael@0 | 39 | </xsl:template> |
michael@0 | 40 | |
michael@0 | 41 | </xsl:stylesheet> |