Support #5136
Updated by Michael Kay over 2 years ago
I am trying to HTTP post some body text that has greater than symbols from Saxon-JS in a web page and I need the symbols to stay as '>' rather than getting escaped to '>'. I have tried disabled-output escaping, cdata, un-parsed text, entities, character map and some other things and nothing seems to work. Is this a bug or can you advise a method to get greater than symbols in the text posted from Saxon-JS through the HTTP post map? My use case is along these lines where I am formatting some query text to be HTTP posted... ~~~ <xsl:variable name="body"> <xsl:text>from(bucket: "TEST") |> range(start: -15d) |> filter(fn: (r) => r._measurement == "000000" and (r._field == "00001") )</xsl:text></xsl:variable> ~~~ And then I want to post in as a scheduled task through a map ~~~ <xsl:param name="request" select="map{ 'method': 'POST', 'href': 'https://www.rapport.net/api/test', 'media-type': 'application/vnd.flux', 'headers': map{ 'accept': 'application/csv', 'content-type': 'application/vnd.flux' }, 'body': serialize($body) }"/> ~~~ Many thanks in advance for any help or support with this!