OP-TED / eforms-notice-viewer

This is a sample eForms application that can visualise an eForms notice. It uses efx-toolkit-java to generate XSL templates from notice view templates written in EFX. It then uses an XSLT processor to generate an HTML visualisation of any given eForms notice.
https://docs.ted.europa.eu/eforms-common/notice-viewer/index.html
European Union Public License 1.2
10 stars 1 forks source link

Added variable declarations to fragment_invocation.ftl. #92

Closed rousso closed 4 months ago

rousso commented 4 months ago

TEDEFO-3342 is a bug that talks about the need to declare XSL variables for each EFXT variable so that subsequently declared variables can reference previously declared ones. The previous implementation attempted to evaluate the variable initialisers directly when declared variables are passed as parameters to child EFX blocks. This does not allow referencing other variables in a variable initialiser because parameters cannot be referenced by name. The fix declares and initialises the variables before passing on their values to xsl:call-template as parameters.