summaryrefslogtreecommitdiff
path: root/manual/xsl/html.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'manual/xsl/html.xsl')
-rw-r--r--manual/xsl/html.xsl22
1 files changed, 22 insertions, 0 deletions
diff --git a/manual/xsl/html.xsl b/manual/xsl/html.xsl
index 2c538b18c0..01757fa52c 100644
--- a/manual/xsl/html.xsl
+++ b/manual/xsl/html.xsl
@@ -15,6 +15,28 @@
<xsl:param name="html.ext" select="'.html'"/>
<xsl:output method="html" indent="yes"/>
+<!--
+ I'm not using draft mode because with at least the version
+ of the stylesheets I have it inserts inline css. I'm not aware
+ of a non-hacky way around that so until I find a better
+ solution I'm using custom status fields:
+
+ ardour-draft
+
+ ardour-beta?
+ ardour-rc (release candidate)?
+
+-->
+
+<!-- Add css class for status -->
+<xsl:template name="body.attributes">
+ <xsl:if test="(ancestor-or-self::*[@status][1]/@status != '')">
+ <xsl:attribute name="class">
+ <xsl:value-of select="ancestor-or-self::*[@status][1]/@status"/>
+ </xsl:attribute>
+ </xsl:if>
+</xsl:template>
+
<!-- titles after all elements -->
<xsl:param name="formal.title.placement">
figure after