diff options
author | defanor <defanor@uberspace.net> | 2021-01-09 08:41:44 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2021-01-09 08:41:44 +0300 |
commit | 3fd41ca76d84c96b22e58666eefbe863b81b4f89 (patch) | |
tree | 148835d014c5b7c7da995e43d190afada5df972d | |
parent | 0e777ddcf2e9982f0092f964d76c8e4b79410428 (diff) |
Copy <body/> attributes
-rwxr-xr-x | tools/publish.sh | 2 | ||||
-rw-r--r-- | tools/xml-to-html.xsl | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tools/publish.sh b/tools/publish.sh index e57bee6..90ed8e2 100755 --- a/tools/publish.sh +++ b/tools/publish.sh @@ -38,4 +38,4 @@ find "${SOURCES}" -name '*.xhtml' | # upload rsync --exclude '.*' --exclude '*.org' --exclude 'src/' \ --exclude 'tools/' --exclude 'build/' \ - -avz . uberspace.net:homepage/web/ + -avz . tart.uberspace.net:public_html/ diff --git a/tools/xml-to-html.xsl b/tools/xml-to-html.xsl index c895bf2..f6aac5b 100644 --- a/tools/xml-to-html.xsl +++ b/tools/xml-to-html.xsl @@ -73,6 +73,7 @@ <meta name="robots" content="noarchive" /> </head> <body> + <xsl:apply-templates mode="body" select="xhtml:body/@*" /> <xsl:apply-templates mode="body" select="xhtml:body/*" /> <footer> <xsl:if test="not(//notes) and @created and @modified"> @@ -132,7 +133,7 @@ </xsl:copy> </xsl:template> - <xsl:template mode="body" match="node()" priority="0"> + <xsl:template mode="body" match="@* | node()" priority="0"> <xsl:copy> <xsl:copy-of select="@*" /> <xsl:apply-templates mode="body" /> |