Remove quotes in result of XSLT 3.0 xml-to-json conversion

I’m new to the XSLT..

I’m doing xml to json conversion in that I’m using map function to display in the key and value format.

Here is my code

<map> <string key="isEmpty"> <xsl:text>true</xsl:text> </string> </map> 

its giving

{ "isEmpty":"true" } 

I want display

{ "isEmpty":true } 

I want to know how to remove/print only boolean value without quote.

Add Comment
1 Answer(s)

Use <boolean key="IsEmpty">true</boolean>, https://xsltfiddle.liberty-development.net/3Mvnt3s.

Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.