cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

XSLT does not honor the output element

iyerha
Not applicable

Hi,

I am using XML tools by workato and the Transform using XSLT action.

I am converting an XML input to a text output. I do this using the following XSLT element:

<xsl:output method="text" encoding="UTF-8"/>

But workato always seems to add the XML prolog to the output i.e. I get <?xml version="1.0" encoding="UTF-8"?> prefixed to the output.

This works correctly when I use another XSLT testing tool. Is this a bug? Is there a workaround?

Thanks,

Hari

1 REPLY 1

Prudvi
Executive Chef II
Executive Chef II

Hi @iyerha,
Did you try adding the following attribute to the xml:output omit-xml-declaration="yes".
"<xsl:output method="text" omit-xml-declaration="yes" encoding="UTF-8"/>"
Regards,
Prudvi