Project

Profile

Help

Outputting < with xsl:message?

Added by Anonymous almost 18 years ago

Legacy ID: #3772772 Legacy Poster: Oliver Meyer (ormek)

Hi everybody, I tried to output the text '<unknown>' with xsl:message, but I always get '&lt;unknown&gt;' on the console. I think this is correct behaviour because it is a correct serialization of the created document. Anyway, is there a way to ouput < with xsl:message? Thanks in advance, Oliver I'm using SaxonB.8-7-1


Replies (2)

RE: Outputting &lt; with xsl:message? - Added by Anonymous almost 18 years ago

Legacy ID: #3773934 Legacy Poster: Michael Kay (mhkay)

Apologies for the delay in responding. For some reason SourceForge has stopped sending me notifications of forum posts. There is a method to set the MessageEmitter which is used to format the output of xsl:message. This is available as a method on the Configuration class or as a property on the TransformerFactory. By supplying the class net.sf.saxon.event.TextEmitter, you should be able to get messages formatted using the text output method rather than the XML output method. (But I haven't tested this - let us know if it works).

RE: Outputting &lt; with xsl:message? - Added by Anonymous almost 18 years ago

Legacy ID: #3775490 Legacy Poster: Oliver Meyer (ormek)

Your answers always come very, very fast. So, there is no reason to apologize. I used the command line option -m net.sf.saxon.event.TEXTEmitter and it worked perfectly. Thanks for your help.

    (1-2/2)

    Please register to reply