Subject: Re: [xsl] is XPath 3.1 xml-to-json() function useful From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 8 Mar 2019 22:17:27 -0000 |
I've been experimenting with the xml-to-json function, but for some reason my output is escaped. Why is that?
Stylesheet:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
B B B xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:f="http://www.w3.org/2005/xpath-functions" version="3.0">
B B B <xsl:output encoding="UTF-8" method="json"/>
B B B <xsl:template match="/">
B B B B B B B <xsl:variable name="transformed">
B B B B B B B B B B B <xsl:apply-templates select="programs"/>
B B B B B B B </xsl:variable>
B B B B B B B <xsl:value-of select="xml-to-json($transformed, map{'indent': true()})"/>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] is XPath 3.1 xml-to-json(, Willem Van Lishout w | Thread | Re: [xsl] is XPath 3.1 xml-to-json(, Martin Honnen martin |
Re: [xsl] is XPath 3.1 xml-to-json(, Willem Van Lishout w | Date | Re: [xsl] is XPath 3.1 xml-to-json(, Wendell Piez wapiez@ |
Month |