Skip to content

[BUG] XSLT messages not appearing in Elemental log when fn:transform() is executed #234

Description

@markdunn-vf

To be able to better understand you problem, please add as much information as possible to this ticket. Please also test your bugs against the latest stable release of Elemental to check whether it has already been fixed.

Describe the bug
I'm executing a transform in an XQuery application running in Elemental 7.7. The transform contains xsl:message instructions but I can't see the messages in elemental.log

Expected behavior
The messages should appear in elemental.log.

To Reproduce

The best way is to provide an SSCCE (Short, Self Contained, Correct (Compilable), Example). One type of SSCCE could be a small test which reproduces the issue and can be run without dependencies. The XQSuite - Annotation-based Test Framework for XQuery makes it very easy for you to create tests. These tests can be executed from the eXide editor XQuery > Run as Test.

xquery version "3.1";

declare namespace util="http://exist-db.org/xquery/util";


(: Replace root with your data :)
declare variable $XML := document {
    <root/>
};

declare variable $XSLT := document {
    <xsl:stylesheet 
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        version="3.0">
        <xsl:template match="/">
            <xsl:message>TEST</xsl:message>
        </xsl:template>
    </xsl:stylesheet>

};

declare variable $options := map{
    'stylesheet-node' : $XSLT,
    'source-node' : $XML
};

let $log1 := util:log('INFO','START')
let $out := fn:transform($options)
let $log2 := util:log('INFO','END')

return <fin/>

NOTE: the XQuery above isn't working for me but is the closest I can get to a short test of the issue.

Context (please always complete the following information)

  • Version: [Elemental 7.7.0]
  • Java: [openjdk 21.0.11 2026-04-21 LTS]
  • OS: [macOS X 26.5.2]

Additional context

  • How is Elemental installed? [DMG]
  • Any custom changes in e.g. conf.xml? [No]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions