Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'src/current/include/preproc/symtable.xsl')
-rw-r--r--src/current/include/preproc/symtable.xsl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/current/include/preproc/symtable.xsl b/src/current/include/preproc/symtable.xsl
index 432c3ab..7635c9a 100644
--- a/src/current/include/preproc/symtable.xsl
+++ b/src/current/include/preproc/symtable.xsl
@@ -688,9 +688,12 @@
<xsl:template match="c:*[ @generates ]" mode="preproc:symtable" priority="5">
<xsl:variable name="parent" select="ancestor::lv:rate" />
+ <xsl:variable name="dim" as="xs:integer"
+ select="if ( @dim ) then @dim else 1" />
+
<preproc:sym name="{@generates}"
parent="{$parent/@yields}"
- type="gen" dtype="float" dim="1" desc="{@desc}" tex="{@sym}" />
+ type="gen" dtype="float" dim="{$dim}" desc="{@desc}" tex="{@sym}" />
<xsl:apply-templates mode="preproc:symtable" />
</xsl:template>