summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2018-04-27 00:25:55 +0300
committerdefanor <defanor@uberspace.net>2018-04-27 00:25:55 +0300
commit8c07ed0d1e8422680cdd4899f3c391df4efc6062 (patch)
tree4e75232a5beb130b0598369f40d4958d5fe96481
parentbd95151b556ebb16cd9e4987386d0448d2ff38b1 (diff)
downloadhomepage-8c07ed0d1e8422680cdd4899f3c391df4efc6062.zip
homepage-8c07ed0d1e8422680cdd4899f3c391df4efc6062.tar.gz
homepage-8c07ed0d1e8422680cdd4899f3c391df4efc6062.tar.bz2
Allow insertion of custom meta and link elements
-rw-r--r--tools/xml-to-html.xsl10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/xml-to-html.xsl b/tools/xml-to-html.xsl
index 65441c2..97e8431 100644
--- a/tools/xml-to-html.xsl
+++ b/tools/xml-to-html.xsl
@@ -57,8 +57,13 @@
href="{@primaryTopic}" />
</xsl:if>
+ <!-- Additional topics -->
<xsl:apply-templates select="topic" />
+ <!-- Additional raw meta and links -->
+ <xsl:apply-templates select="xhtml:meta" />
+ <xsl:apply-templates select="xhtml:link" />
+
<!-- The rest is fixed metadata -->
<link property="dc:creator schema:creator foaf:maker"
href="/foaf.rdf#me" />
@@ -82,4 +87,9 @@
href="{@iri}" />
</xsl:template>
+ <!-- Additional raw meta and link elements -->
+ <xsl:template match="xhtml:meta | xhtml:link">
+ <xsl:copy-of select="." />
+ </xsl:template>
+
</xsl:stylesheet>