Added the BSD licensed xmlformat utility for keeping the xml pretty
[ardour.git] / manual / xsl / html.xsl
index 2c538b18c0409ae0ef5210d8c7cf4fded75dd680..01757fa52c91409736d05d486dc9ed397e492011 100644 (file)
 <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