Support #5136
closedGreater than symbol getting escaped in HTTP Post body text passed through map
0%
Description
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!
Please register to edit this issue
Also available in: Atom PDF Tracking page