Mapping All Variables With Mediator in One
- ANIL FIRAT
- 30 Ara 2019
- 1 dakikada okunur
There was a question in StackOverFlow. The Coder named Kerem asked :
” I’m mapping variables in XSLT file but I have lots of variables to map. Is there any mediator to do this in WSO2? “
Well, we use .xslt files when we code our transform files. These files are use for model of Swagger also but if you have thousands of models it is a bit hard to transform all of them of course 📷 That is why we use mediator for TO MAKE LIFE EASY!!!
Answer of the question is:
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
Special thanks to Kerem Can ( https://stackoverflow.com/users/5607607/kerem-can ) for this amazing question :)
Comentarios