Eclipse plugin and multiline messages

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Ormek
Posts: 10
Joined: Mon Sep 05, 2005 12:50 pm

Eclipse plugin and multiline messages

Post 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
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post 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
Post Reply