diff --git a/src/current/include/preproc/template.xsl b/src/current/include/preproc/template.xsl
index 5211aea5..7b7ff765 100644
--- a/src/current/include/preproc/template.xsl
+++ b/src/current/include/preproc/template.xsl
@@ -152,7 +152,7 @@
+ $symtable-map, $tpl, $src-root, $params, . )" />
@@ -242,12 +242,12 @@
+ $symtable-map, $tpl, $src-root, $params, . )" />
+ $symtable-map, $tpl, $src-root, lv:with-param, . )" />
@@ -267,6 +267,8 @@
+
+
@@ -327,6 +329,8 @@
+
@@ -335,6 +339,8 @@
select="$apply-result">
+
+
@@ -1313,11 +1320,8 @@
-
+
@@ -1340,6 +1344,7 @@
-->
+
@@ -1358,9 +1363,7 @@
+ $symtable-map( $sym-name )/@*[ local-name() = $value ]" />
@@ -1403,6 +1406,7 @@
-->
+
@@ -1422,9 +1426,7 @@
select="$params[ @name = $value ]/@value" />
+ select="$symtable-map( $typedef-name )[ @type = 'type' ]" />