Send messages to results pane from XQuery Refactor?
Oxygen general issues.
-
- Posts: 2
- Joined: Sat Feb 04, 2023 6:06 pm
Send messages to results pane from XQuery Refactor?
Post by ekimbernow »
I am implementing XQuery refactors and need to be able to send messages to the results pane as I can using xsl:message with XSLT refactors.
I tried using trace() but that appeared to have no effect.
I have two requirements:
1. Use messages for debugging refactors during development
2. Use messages to report status for longer-running, more-involved refactors.
Is there a way to emit messages with XQuery refactors?
I tried using trace() but that appeared to have no effect.
I have two requirements:
1. Use messages for debugging refactors during development
2. Use messages to report status for longer-running, more-involved refactors.
Is there a way to emit messages with XQuery refactors?
Re: Send messages to results pane from XQuery Refactor?
Hi Eliot,
I added an internal issue to catch all such trace messages and display them in a "Messages" view similarly to how we display xsl:messages, pasting the issue ID below for future reference:
EXM-52388 Add trace function listener for XQuery XML refactoring processor
But the displayed trace messages will not have location, clicking them will not take you to the place in the XQuery where the message was issued.
One more thing, if you start Oxygen using the "oxygenMac.sh" script I think you should find the trace messages are being output in the Terminal window.
Regards,
Radu
I added an internal issue to catch all such trace messages and display them in a "Messages" view similarly to how we display xsl:messages, pasting the issue ID below for future reference:
EXM-52388 Add trace function listener for XQuery XML refactoring processor
But the displayed trace messages will not have location, clicking them will not take you to the place in the XQuery where the message was issued.
One more thing, if you start Oxygen using the "oxygenMac.sh" script I think you should find the trace messages are being output in the Terminal window.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 2
- Joined: Sat Feb 04, 2023 6:06 pm
Re: Send messages to results pane from XQuery Refactor?
Post by ekimbernow »
I verified that error(fn:QName('ERRORNUM'), "This is my error message") ends the refactor processing and puts a message in the result pane.
Re: Send messages to results pane from XQuery Refactor?
Hi,
As an update, Oxygen 25.1 should present such trace function messages in the results view.
Regards,
Radu
As an update, Oxygen 25.1 should present such trace function messages in the results view.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service