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 2 forks source link

Error in eforms-notice-viewer when processing xml File #85

Closed skyazid closed 11 months ago

skyazid commented 11 months ago

Hi @rousso,

I encountered an issue with the eforms-notice-viewer.

After compiling, I executed the jar with the following command: java -jar .\target\eforms-notice-viewer-0.10.0-SNAPSHOT-app.jar fr .\pin-cfc-social_25.xml.

This problem is not only present with the pin-cfc-social_25.xml but also occurs with multiple files in the examples/notices directory.

I got an error in the logs :

Error at char 61 in expression in xsl:value-of/@select on line 3605 column 287 FORG0001 The string "Informations de base sur lÆ[x2019]avi..." cannot be cast to a boolean at template block0401150505 on line 3596 column 42 invoked by xsl:call-template at #3500 at template block04011505 on line 3479 column 40 invoked by xsl:for-each at #3499 at template block04011505 on line 3479 column 40 invoked by xsl:call-template at #3040 at template block040115 on line 3021 column 38 invoked by xsl:for-each at #3039 at template block040115 on line 3021 column 38 invoked by xsl:call-template at #1451 at template block0401 on line 1396 column 36 invoked by xsl:for-each at #1450 at template block0401 on line 1396 column 36 invoked by xsl:call-template at #1392 at template block04 on line 1385 column 34 invoked by xsl:for-each at #1391 at template block04 on line 1385 column 34 invoked by xsl:call-template at #148 invoked by xsl:for-each at #147 In template rule with match="/" on line 132 of Error executing the application with arguments [[fr, .\pin-cfc-social_25.xml]].

This error seems to occur during the XSLT transformation process. Any guidance or fixes for this issue would be greatly appreciated.

skyazid commented 11 months ago

Finally, it was a cache issue, using -f fixed the problem.