diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2016-07-04 18:15:51 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2016-07-04 18:59:26 +0200 |
commit | 77c4b12eec6a932bfbf5d5decc81adda277d21bf (patch) | |
tree | 0687a8d768c1dde5e274784ec0277ea04f12b4b9 /xsl | |
parent | fc466638089998071961f152c041c1d9c79cd17d (diff) | |
download | mutti-web-77c4b12eec6a932bfbf5d5decc81adda277d21bf.tar.gz mutti-web-77c4b12eec6a932bfbf5d5decc81adda277d21bf.tar.bz2 mutti-web-77c4b12eec6a932bfbf5d5decc81adda277d21bf.zip |
Add a rule to generate html files from xhtml
Diffstat (limited to 'xsl')
-rw-r--r-- | xsl/convert-xhtml-to-html.xsl | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/xsl/convert-xhtml-to-html.xsl b/xsl/convert-xhtml-to-html.xsl new file mode 100644 index 0000000..54a651b --- /dev/null +++ b/xsl/convert-xhtml-to-html.xsl @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + version="1.0" + exclude-result-prefixes="html xlink svg" + xmlns="http://www.w3.org/1999/xhtml" + xmlns:html="http://www.w3.org/1999/xhtml" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:svg="http://www.w3.org/2000/svg"> + + <xsl:output method="html" indent="yes" encoding="utf-8" + cdata-section-elements="script style" + media-type="text/html" + doctype-system="about:legacy-compat" + /> + + <xsl:template match="*"> + <xsl:copy> + <xsl:copy-of select="@*"/> + <xsl:apply-templates /> + </xsl:copy> + </xsl:template> + +</xsl:stylesheet> |