etf-validator / etf-webapp

:earth_africa: :mag: ETF is an open source testing framework for spatial data and services
https://www.etf-validator.net
European Union Public License 1.2
19 stars 19 forks source link

Test report styling cannot handle message arguments in test results with backslashes #102

Closed cportele closed 7 years ago

cportele commented 7 years ago

See https://github.com/inspire-eu-validation/ets-repository/issues/52

In this case:

<message ref="TR.urlNotHttp">
<translationArguments>
<argument token="filename">nlps_nationaleparken.gml.xml</argument>
<argument token="id">X-X-46ec-a81c-36cd29448940</argument>
<argument token="url">
\\X\X\X\X\X\X\X\Data\Beschermde gebieden\Geharmoniseerde INSPIRE data\Nationale_Parken\nlps_nationaleparken.gml
</argument>
</translationArguments>
</message>

Maybe other characters need special treatment as well?

jonherrmann commented 7 years ago

Issue has been fixed in version 2.0.0 build 1703xx.

jonherrmann commented 7 years ago

For the described case "/", it is already fixed. Added code for the second case when a $ literal is in the argument string.

https://www.w3.org/TR/xpath-functions/#func-replace