speedata / publisher

speedata Publisher - a professional database Publishing system
https://www.speedata.de/
GNU Affero General Public License v3.0
292 stars 36 forks source link

[FEATURE REQUEST] Identifier for <Message> #545

Closed Cicorione closed 6 months ago

Cicorione commented 6 months ago

Hi @pgundlach

I wonder if it might be possible add some sort of identification to the messages output, I am trying to debug some layout issue but I am not so skilled to understand which message is which when I got for each a nil value.

Perhaps something: <Message id="var1" select="$var1" />

Thanks... 🙏

pgundlach commented 6 months ago

This is a good feature request, thank you.

A workaround could be to use the lxpath XPath parser which generates output such as

...
Call "Message" from layout (line 22)
Message: "Hello nice world"
Call "PlaceObject" from layout (line 24)
...

or identify yourself within message:

<Message select="concat('color: ', $color)" />
Cicorione commented 6 months ago

Thank @pgundlach I didn't realize I could use such workaround... 🙃

Cicorione commented 6 months ago

I'd like to point out if the variable is malformed select="concat('text', $variable)" shows an empty message without plain text.

pgundlach commented 6 months ago

Implemented in version 4.15.17