summaryrefslogtreecommitdiffstats
path: root/readlicense_oo/license/license_html.xsl
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 16:51:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 16:51:28 +0000
commit940b4d1848e8c70ab7642901a68594e8016caffc (patch)
treeeb72f344ee6c3d9b80a7ecc079ea79e9fba8676d /readlicense_oo/license/license_html.xsl
parentInitial commit. (diff)
downloadlibreoffice-940b4d1848e8c70ab7642901a68594e8016caffc.tar.xz
libreoffice-940b4d1848e8c70ab7642901a68594e8016caffc.zip
Adding upstream version 1:7.0.4.upstream/1%7.0.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'readlicense_oo/license/license_html.xsl')
-rw-r--r--readlicense_oo/license/license_html.xsl32
1 files changed, 32 insertions, 0 deletions
diff --git a/readlicense_oo/license/license_html.xsl b/readlicense_oo/license/license_html.xsl
new file mode 100644
index 000000000..ed8452792
--- /dev/null
+++ b/readlicense_oo/license/license_html.xsl
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:x="http://www.w3.org/1999/xhtml" version="1.0">
+
+ <xsl:output method="xml"/>
+
+ <xsl:param name="build_type" />
+ <xsl:param name="no_mpl_subset" />
+ <xsl:param name="os" />
+ <xsl:param name="themes" />
+
+ <xsl:template match="x:div">
+ <xsl:choose>
+ <xsl:when test="(
+ not(contains($build_type,@class)) and
+ not(contains($no_mpl_subset,@class)) and
+ not(contains($os,@class)) and
+ not(contains($themes,@class)) and @class)">
+ <!-- do not write out license text for these externals -->
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="node()"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template match="@* | node()">
+ <xsl:copy>
+ <xsl:apply-templates select="@* | node()"/>
+ </xsl:copy>
+ </xsl:template>
+
+</xsl:stylesheet>