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

XSLT does not honor the output element

iyerha
Deputy Chef I
Deputy Chef I

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

5 REPLIES 5

shivakumara
Executive Chef III
Executive Chef III

Hi @iyerha,
Here are the small changes:

Your changes:
-----------------
<xsl:output method="text" omit-xml-declaration="yes" encoding="UTF-8"/>

Changes required:
-------------------
<xsl:output method="text" indent="no"/>

HTMLTOTEXT.png
Thanks and Regards,
Shivakumara K A