module php setProperty('m',xxxx) ?
The xsl I am trying to transform with, uses xsl:message. Apparently the default behavior is to push these messages to the stdout. However, since I will be using this within a soap webservice, I am pretty sure stdout output will not make my ws happy. Also I would have liked to eventually capture these to push them in a special section of my xml output. I have come to understand that "property" m would allow to associate a different message listener. However is this really possible in PHP api ? If yes how ? If no how can I prevent them to getting output to stdout ?
In advance thank you for your help
#1 Updated by O'Neil Delpratt over 2 years ago
- Tracker changed from Feature to Bug
- Category set to PHP API
- Status changed from New to In Progress
- Assignee set to O'Neil Delpratt
- Found in version set to 1.1.2
The setProperty("m", "xxxx") will indeed prevent your xsl:messages from outputting to your stdout.
In the C++ code we have the following method which allows the user to retrieve the xsl:messages as an array of XdmValue:
XdmValue * getXslMessages()
However this method is not currently available in the PHP API. so there is no way to get to the messages. There is no reason why this method is missing from the PHP API. Therefore I am marking this issue as a bug, which we will fix.
Thank for reporting it. The workaround of using the setProperty should at least help you for now.
#3 Updated by O'Neil Delpratt over 2 years ago
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
Correction to my statement in comment #1. The
getXslMessages() method returns an XdmValue object which may contain a sequence of XdmItem objects.
Bug fixed. Method
getXslMessages() added in the PHP API.
Test case needed.
Please register to edit this issue