Page 1 of 1

Eclipse plugin and multiline messages

Posted: Wed Sep 14, 2005 2:11 pm
by Ormek
Hi.

xsl:messages are stored as problem in eclipse. That's nice.
But, if a message contains multiple lines, each line becomes a problem of itself. That's not so nice. Is it a bug or a feature?

The workaround is easy, though. Make sure the xsl:message template body generates a single line.

Regards,
Oliver

Posted: Wed Sep 14, 2005 3:12 pm
by george
Hi Oliver,

The handling of xsl:message is not standardized at API level so each processor implements this differently. For instabce Xalan notifies the messages as warnings to the ErrorListener set on the transformer while Saxon writes the messages to a MessageEmiter. I suppose you are using Saxon - in this case we do not know the boundaries of messages but we know that a new message will be reported on a new line thus we present each line as a dufferent message entry.

Best Regards,
George