Raw angle brackets in xsl:message output?

Help
2010-12-12
2012-10-08
  • Phil Pfeiffer

    Phil Pfeiffer - 2010-12-12

    I'm using Saxon 2.0 (HE) to write a preprocessor for a set of XForms
    documents. If possible, I'd like to print error messages that print element
    names in angle brackets, rather than fudging and printing something like

    ?? error: duplicate {body} elements in program source

    I've thought about this problem for some time, and have not been able to
    figure out how to get xsl:message to render angle brackets, short (possibly)
    of switching over to textual output, using xsl:output, which I've been loathe
    to try for obvious reasons. Is there anything I'm overlooking?

    Thanks for any (relevant) suggestions. Appreciatively, Phil

     
  • Michael Kay

    Michael Kay - 2010-12-12

    If you use the s9api interface you can nominate a MessageListener to process
    xsl;message output, and your MessageListener can serialize messages using the
    text output method, rather than the default, which is to use the XML output
    method. Of course, if your messages actually contain XML content, this isn't a
    good idea.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks