1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <xsl:stylesheet xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform" xmlns:
x=
"http://www.w3.org/1999/xhtml" version=
"1.0">
4 <xsl:output method=
"text" omit-xml-declaration=
"yes" indent=
"no"/>
6 <xsl:param name=
"build_type" />
7 <xsl:param name=
"no_mpl_subset" />
8 <xsl:param name=
"os" />
9 <xsl:param name=
"themes" />
11 <xsl:strip-space elements=
"*"/>
13 <xsl:template match=
"/">
14 <xsl:apply-templates select=
"x:html/x:body"/>
17 <xsl:template match=
"x:body">
18 <xsl:apply-templates />
21 <xsl:template match=
"x:div">
24 not(contains($build_type,@class)) and
25 not(contains($no_mpl_subset,@class)) and
26 not(contains($os,@class)) and
27 not(contains($themes,@class)) and @class)">
28 <!-- do not write out license text for these externals -->
31 <xsl:apply-templates />
36 <xsl:template match=
"x:p|x:li">
37 <xsl:value-of select=
"concat(.,' ')"/>
38 <xsl:text>
</xsl:text>
39 <xsl:apply-templates />
42 <xsl:template match=
"x:h1">
43 <xsl:text>#
</xsl:text>
44 <xsl:value-of select=
"concat(.,' ')"/>
45 <xsl:text>
</xsl:text>
48 <xsl:template match=
"x:h2">
49 <xsl:text>##
</xsl:text>
50 <xsl:value-of select=
"concat(.,' ')"/>
51 <xsl:text>
</xsl:text>
54 <xsl:template match=
"x:h3">
55 <xsl:text>###
</xsl:text>
56 <xsl:value-of select=
"concat(.,' ')"/>
57 <xsl:text>
</xsl:text>
60 <xsl:template match=
"text()|@*"></xsl:template>