Hi Andy,
Has this situation changed with newer BaseX and Saxon releases?
No; I’m sorry. Maybe the Saxon API has stabilized in the meanwhile, so that we can avoid rewriting the corresponding code again and again; would be worth a try (PRs are welcome ;·). That’s also one of the reasons why we haven’t implemented fn:transform so far: Chances are high that we would need to give a lot of support for changes that we are not directly responsible for.
Best, Christian
[1]
https://www.mail-archive.com/basex-talk@mailman.uni-konstanz.de/msg15672.htm...
On Mon, 2 Jun 2025 at 11:59, Lizzi, Vincent < Vincent.Lizzi@taylorandfrancis.com> wrote:
Hello BaseX team,
I typically use the xslt:transform-text function to apply an XSLT stylesheet and obtain the result that is serialized by Saxon according to the xsl:output instructions in the stylesheet. The xslt:transform-report has the advantage of providing access to messages created by xsl:message instructions. I have a few questions about these functions:
Is there a way to use the xsl:transform-report function to obtain messages and the serialized result (instead of document nodes) that is currently returned by xslt:transform-text?
Is there a way to provide a base URI in the options of xsl:transform-text (or xsl:transform-report or xsl:transform)? If the input to the transformation is on disk then the base URI is set automatically, however if the input is held in memory then the base URI is not set so it could be helpful to be able to provide a base uri to the transformer as an option.
The documentation doesn’t mention these capabilities so I’m guessing that these things are not currently possible.
Thank you,
Vincent
*Vincent M. Lizzi*
Head of Information Standards | Taylor & Francis Group
E-Mail: *vincent.lizzi@taylorandfrancis.com vincent.lizzi@taylorandfrancis.com*
Web: *www.tandfonline.com http://www.tandfonline.com/*
Time zone: US Eastern
Taylor & Francis is a trading name of Informa UK Limited,
registered in England under no. 1072954
"Everything should be made as simple as possible, but not simpler."
Book time to meet with me https://outlook.office.com/bookwithme/user/aa80d42cbb5b46dba06a5ad241d7665b@taylorandfrancis.com?anonymous&ep=owaSlotsEmailSignature
Information Classification: General