Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'src/current/compiler/fragments.xsl')
-rw-r--r--src/current/compiler/fragments.xsl6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/current/compiler/fragments.xsl b/src/current/compiler/fragments.xsl
index 23dcae9..8fee167 100644
--- a/src/current/compiler/fragments.xsl
+++ b/src/current/compiler/fragments.xsl
@@ -128,7 +128,11 @@
<xsl:variable name="pkg" as="element( lv:package )"
select="root(.)" />
- <xsl:apply-templates select="$pkg/lv:const[ @name=$name ]" mode="compile" />
+ <xsl:apply-templates mode="compile"
+ select="$pkg/lv:const[ @name=$name ],
+ $pkg/lv:typedef//lv:item[ @name=$name ]">
+ <xsl:with-param name="as-const" select="true()" />
+ </xsl:apply-templates>
</xsl:template>
<xsl:template match="preproc:sym[ @type='tpl' ]" mode="preproc:compile-fragments" priority="5">