From 78ea30e7b537a9315b802716621b534dc10783b9 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Thu, 25 Jan 2018 14:53:31 -0500 Subject: [PATCH] Retain unknown template param references during expansion For example, with template-generating templates, if a reference is unknown and therefore determined to be blank, an attribute might be completely removed while the template is being generated. (See the /when package in core for an example.) That is not good. * src/current/include/preproc/template (preproc:expand-template): Add `tpl' tunneling param to preproc:apply-template application. (preproc:apply-template)[@*]: Retain param reference if applying template does not define it. --- src/current/include/preproc/template.xsl | 27 ++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/src/current/include/preproc/template.xsl b/src/current/include/preproc/template.xsl index d64330fa..de65e5e7 100644 --- a/src/current/include/preproc/template.xsl +++ b/src/current/include/preproc/template.xsl @@ -312,6 +312,8 @@ + + + - + @@ -895,11 +899,22 @@ - - - - + + + + + + + + + + + +