Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/current/include/preproc/expand.xsl21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/current/include/preproc/expand.xsl b/src/current/include/preproc/expand.xsl
index 018da81..c8b2459 100644
--- a/src/current/include/preproc/expand.xsl
+++ b/src/current/include/preproc/expand.xsl
@@ -497,7 +497,8 @@
</xsl:attribute>
</xsl:if>
- <xsl:sequence select="@*" />
+ <xsl:apply-templates mode="preproc:expand"
+ select="@*" />
<!-- force @keep on @terminate -->
<xsl:if test="@terminate='true'">
@@ -510,6 +511,24 @@
</xsl:template>
+<!--
+ Normalize whitespace for class descriptions
+-->
+<xsl:template mode="preproc:expand" priority="5"
+ match="lv:classify/@desc">
+ <xsl:attribute name="desc"
+ select="normalize-space( . )" />
+</xsl:template>
+
+<!--
+ All other class attributes are copied verbatim
+-->
+<xsl:template mode="preproc:expand" priority="1"
+ match="lv:classify/@*">
+ <xsl:sequence select="." />
+</xsl:template>
+
+
<!-- default lv:match/@on short-hand to assert on a value of TRUE -->
<xsl:template match="lv:match[ not( @value
or @anyOf