Add XML declaration example to XSLT mediator documentation - #2337
Add XML declaration example to XSLT mediator documentation#2337ChaninduImanjith wants to merge 1 commit into
Conversation
Add XML declaration example to XSLT mediator docs
|
Warning Review limit reached
More reviews will be available in 55 minutes and 4 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more credits in the billing tab to continue. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe XSLT mediator reference adds “Example 5 - Adding XML declaration to the output.” It documents the default output behavior, shows how to set the 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This PR updates the XSLT mediator documentation to explain how to include an XML declaration in WSO2 MI output payloads by setting the WRITE_XML_DECLARATION Axis2 property.
Changes:
- Adds a new “Example 5” showing how to enable
WRITE_XML_DECLARATIONin theaxis2scope. - Provides a short snippet, a full sequence example, and the expected XML output including the declaration.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| Then the XSLT transformation happens in memory without writing data to disk. Therefore, performance is increased. | ||
|
|
||
| If the input or transformed message size exceeds the value of `<synapse.temp_data_chunk_size>`, the XSLT Mediator creates temporary files at `<MI_HOME>/tmp`. These files are not explicitly deleted by the WSO2 Integrator: MI. The lifecycle of these files is managed by Java's Garbage Collector (GC). When no references to the temporary files remain, they will be expected to be deleted as part of the `java.lang.Object.finalize()` method. No newline at end of file | ||
| If the input or transformed message size exceeds the value of `<synapse.temp_data_chunk_size>`, the XSLT Mediator creates temporary files at `<MI_HOME>/tmp`. These files are not explicitly deleted by the WSO2 Integrator: MI, so you may need to clean up this directory periodically. |
There was a problem hiding this comment.
Let's have the original note.
There was a problem hiding this comment.
Done! Reverted the Copilot suggestion and restored the original note. @chanikag
d331ed2 to
f3e7aa6
Compare
Purpose
Resolves #1681
Goals
Add documentation on how to include the XML declaration (
<?xml version="1.0" encoding="utf-8"?>) in WSO2 MI output payloads using theWRITE_XML_DECLARATIONaxis2 property.Approach
Added Example 5 to the XSLT mediator documentation explaining how to use the
WRITE_XML_DECLARATIONproperty with a code example and expected output.User stories
As a WSO2 MI developer, I want to know how to add an XML declaration to my output payload so that downstream systems that require it can process the response correctly.
Release note
Added documentation for adding XML declaration to output payloads using the
WRITE_XML_DECLARATIONaxis2 property in the XSLT mediator docs.Documentation
en/docs/reference/mediators/xslt-mediator.mdTraining
N/A
Certification
N/A - Documentation-only update.
Marketing
N/A
Automation tests
N/A - No code changes introduced.
Security checks
Samples
N/A
Related PRs
N/A
Migrations
N/A
Test environment
Tested on Fedora OS (local documentation verification).
Learning
Solution referenced from https://stackoverflow.com/questions/13019908/wso2-xml-declaration