toolkit/mozapps/extensions/content/updateinfo.xsl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/mozapps/extensions/content/updateinfo.xsl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,41 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<!-- This Source Code Form is subject to the terms of the Mozilla Public
     1.6 +   - License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 +   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
     1.8 +
     1.9 +<xsl:stylesheet version="1.0" xmlns:xhtml="http://www.w3.org/1999/xhtml"
    1.10 +                              xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    1.11 +
    1.12 +  <!-- Any elements not otherwise specified will be stripped but the contents
    1.13 +       will be displayed. All attributes are stripped from copied elements. -->
    1.14 +
    1.15 +  <!-- Block these elements and their contents -->
    1.16 +  <xsl:template match="xhtml:head|xhtml:script|xhtml:style">
    1.17 +  </xsl:template>
    1.18 +
    1.19 +  <!-- Allowable styling elements -->
    1.20 +  <xsl:template match="xhtml:b|xhtml:i|xhtml:em|xhtml:strong|xhtml:u|xhtml:q|xhtml:sub|xhtml:sup|xhtml:code">
    1.21 +    <xsl:copy><xsl:apply-templates/></xsl:copy>
    1.22 +  </xsl:template>
    1.23 +
    1.24 +  <!-- Allowable block formatting elements -->
    1.25 +  <xsl:template match="xhtml:h1|xhtml:h2|xhtml:h3|xhtml:p|xhtml:div|xhtml:blockquote|xhtml:pre">
    1.26 +    <xsl:copy><xsl:apply-templates/></xsl:copy>
    1.27 +  </xsl:template>
    1.28 +
    1.29 +  <!-- Allowable list formatting elements -->
    1.30 +  <xsl:template match="xhtml:ul|xhtml:ol|xhtml:li|xhtml:dl|xhtml:dt|xhtml:dd">
    1.31 +    <xsl:copy><xsl:apply-templates/></xsl:copy>
    1.32 +  </xsl:template>
    1.33 +
    1.34 +  <!-- These elements are copied and their contents dropped -->
    1.35 +  <xsl:template match="xhtml:br|xhtml:hr">
    1.36 +    <xsl:copy/>
    1.37 +  </xsl:template>
    1.38 +
    1.39 +  <!-- The root document -->
    1.40 +  <xsl:template match="/">
    1.41 +    <xhtml:body><xsl:apply-templates/></xhtml:body>
    1.42 +  </xsl:template>
    1.43 +  
    1.44 +</xsl:stylesheet>

mercurial