<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: XSLT does not honor the output element in Community Chat</title>
    <link>https://systematic.workato.com/t5/community-chat/xslt-does-not-honor-the-output-element/m-p/9575#M777</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/11685"&gt;@iyerha&lt;/a&gt;,&lt;BR /&gt;Here are the small changes:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Your changes:
-----------------
&amp;lt;xsl:output method="text" omit-xml-declaration="yes" encoding="UTF-8"/&amp;gt;

Changes required:
-------------------
&amp;lt;xsl:output method="text" indent="no"/&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HTMLTOTEXT.png" style="width: 660px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1989iD2E5775129965B9B/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="HTMLTOTEXT.png" alt="HTMLTOTEXT.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Thanks and Regards,&lt;BR /&gt;Shivakumara K A&lt;/P&gt;</description>
    <pubDate>Wed, 09 Apr 2025 07:35:53 GMT</pubDate>
    <dc:creator>shivakumara</dc:creator>
    <dc:date>2025-04-09T07:35:53Z</dc:date>
    <item>
      <title>XSLT does not honor the output element</title>
      <link>https://systematic.workato.com/t5/community-chat/xslt-does-not-honor-the-output-element/m-p/9502#M771</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using XML tools by workato and the Transform using XSLT action.&lt;/P&gt;&lt;P&gt;I am converting an XML input to a text output. I do this using the following XSLT element:&lt;/P&gt;&lt;P&gt;&amp;lt;xsl:output method="text" encoding="UTF-8"/&amp;gt;&lt;/P&gt;&lt;P&gt;But workato always seems to add the XML prolog to the output i.e. I get&amp;nbsp;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt; prefixed to the output.&lt;/P&gt;&lt;P&gt;This works correctly when I use another XSLT testing tool. Is this a bug? Is there a workaround?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hari&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 19:32:02 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/community-chat/xslt-does-not-honor-the-output-element/m-p/9502#M771</guid>
      <dc:creator>iyerha</dc:creator>
      <dc:date>2025-04-03T19:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: XSLT does not honor the output element</title>
      <link>https://systematic.workato.com/t5/community-chat/xslt-does-not-honor-the-output-element/m-p/9516#M772</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/11685"&gt;@iyerha&lt;/a&gt;,&lt;BR /&gt;Did you try adding the following attribute to the xml:output&amp;nbsp;&lt;STRONG&gt;&lt;SPAN class=""&gt;omit-xml-declaration&lt;/SPAN&gt;=&lt;SPAN class=""&gt;"yes".&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;"&amp;lt;xsl:output method="text" &lt;STRONG&gt;&lt;SPAN class=""&gt;omit-xml-declaration&lt;/SPAN&gt;=&lt;SPAN class=""&gt;"yes"&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;encoding="UTF-8"/&amp;gt;"&lt;BR /&gt;Regards,&lt;BR /&gt;Prudvi&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 04:36:48 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/community-chat/xslt-does-not-honor-the-output-element/m-p/9516#M772</guid>
      <dc:creator>Prudvi</dc:creator>
      <dc:date>2025-04-04T04:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: XSLT does not honor the output element</title>
      <link>https://systematic.workato.com/t5/community-chat/xslt-does-not-honor-the-output-element/m-p/9535#M773</link>
      <description>&lt;P&gt;Hi Prudvi,&lt;/P&gt;&lt;P&gt;I tried that and it still emits the XML prolog. It appears to be a bug.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 21:09:50 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/community-chat/xslt-does-not-honor-the-output-element/m-p/9535#M773</guid>
      <dc:creator>iyerha</dc:creator>
      <dc:date>2025-04-04T21:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: XSLT does not honor the output element</title>
      <link>https://systematic.workato.com/t5/community-chat/xslt-does-not-honor-the-output-element/m-p/9566#M775</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/11685"&gt;@iyerha&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;I hope you are doing well,&lt;BR /&gt;Here is my understanding on the problem statement:&lt;BR /&gt;1. You are basically converting given XML to Text (RAW output) applying XSLT transformation.&lt;BR /&gt;2. However, you are getting a response which is including XML header to it (i.e.&amp;nbsp;&lt;SPAN&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;Here I am adding my insights to the problem statement, let me know if that works for you&lt;BR /&gt;1. Please kindly check your XSLT content whether it is applied to your XML.&lt;BR /&gt;&lt;BR /&gt;Here I am adding my input XML, Provided XSLT contents and output.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Input XML
-------------------------
&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;students&amp;gt;
  &amp;lt;student&amp;gt;
    &amp;lt;name&amp;gt;John Doe&amp;lt;/name&amp;gt;
    &amp;lt;grade&amp;gt;A&amp;lt;/grade&amp;gt;
  &amp;lt;/student&amp;gt;
  &amp;lt;student&amp;gt;
    &amp;lt;name&amp;gt;Jane Smith&amp;lt;/name&amp;gt;
    &amp;lt;grade&amp;gt;B+&amp;lt;/grade&amp;gt;
  &amp;lt;/student&amp;gt;
&amp;lt;/students&amp;gt;

XSLT applied:
---------------
&amp;lt;xsl:output method="text" encoding="UTF-8"/&amp;gt;
&amp;lt;xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&amp;gt;
  
  &amp;lt;xsl:output method="html" indent="yes"/&amp;gt;

  &amp;lt;xsl:template match="/"&amp;gt;
    &amp;lt;html&amp;gt;
      &amp;lt;head&amp;gt;
        &amp;lt;title&amp;gt;Student Grades&amp;lt;/title&amp;gt;
      &amp;lt;/head&amp;gt;
      &amp;lt;body&amp;gt;
        &amp;lt;h2&amp;gt;Student Grade Report&amp;lt;/h2&amp;gt;
        &amp;lt;table border="1"&amp;gt;
          &amp;lt;tr&amp;gt;
            &amp;lt;th&amp;gt;Name&amp;lt;/th&amp;gt;
            &amp;lt;th&amp;gt;Grade&amp;lt;/th&amp;gt;
          &amp;lt;/tr&amp;gt;
          &amp;lt;xsl:for-each select="students/student"&amp;gt;
            &amp;lt;tr&amp;gt;
              &amp;lt;td&amp;gt;&amp;lt;xsl:value-of select="name"/&amp;gt;&amp;lt;/td&amp;gt;
              &amp;lt;td&amp;gt;&amp;lt;xsl:value-of select="grade"/&amp;gt;&amp;lt;/td&amp;gt;
            &amp;lt;/tr&amp;gt;
          &amp;lt;/xsl:for-each&amp;gt;
        &amp;lt;/table&amp;gt;
      &amp;lt;/body&amp;gt;
    &amp;lt;/html&amp;gt;
  &amp;lt;/xsl:template&amp;gt;
&amp;lt;/xsl:stylesheet&amp;gt;

Output:
----------------
{
  Output: &amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Student Grades&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;h2&amp;gt;Student Grade Report&amp;lt;/h2&amp;gt;
&amp;lt;table border="1"&amp;gt;
&amp;lt;tr&amp;gt;
&amp;lt;th&amp;gt;Name&amp;lt;/th&amp;gt;
&amp;lt;th&amp;gt;Grade&amp;lt;/th&amp;gt;
&amp;lt;/tr&amp;gt;
&amp;lt;tr&amp;gt;
&amp;lt;td&amp;gt;John Doe&amp;lt;/td&amp;gt;
&amp;lt;td&amp;gt;A&amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;
&amp;lt;tr&amp;gt;
&amp;lt;td&amp;gt;Jane Smith&amp;lt;/td&amp;gt;
&amp;lt;td&amp;gt;B+&amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;
&amp;lt;/table&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
}&lt;/LI-CODE&gt;&lt;P&gt;Please let me know if the provided output is what you were expecting.&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards,&lt;BR /&gt;Shivakumara K A&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 05:51:55 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/community-chat/xslt-does-not-honor-the-output-element/m-p/9566#M775</guid>
      <dc:creator>shivakumara</dc:creator>
      <dc:date>2025-04-08T05:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: XSLT does not honor the output element</title>
      <link>https://systematic.workato.com/t5/community-chat/xslt-does-not-honor-the-output-element/m-p/9568#M776</link>
      <description>&lt;P&gt;Hi Shivakumara,&lt;/P&gt;&lt;P&gt;When output is set to html, there is no XML prolog as you have demonstrated. But I am trying to convert to plain text and when I set the output to text, I still get the prolog. Here is my recipe test result:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  Response content type: rawdatatxt,
  Document: &amp;lt;books&amp;gt;
    &amp;lt;book&amp;gt;
        &amp;lt;title&amp;gt;Effective Java&amp;lt;/title&amp;gt;
        &amp;lt;author&amp;gt;Joshua Bloch&amp;lt;/author&amp;gt;
        &amp;lt;year&amp;gt;2018&amp;lt;/year&amp;gt;
    &amp;lt;/book&amp;gt;
    &amp;lt;book&amp;gt;
        &amp;lt;title&amp;gt;Clean Code&amp;lt;/title&amp;gt;
        &amp;lt;author&amp;gt;Robert C. Martin&amp;lt;/author&amp;gt;
        &amp;lt;year&amp;gt;2008&amp;lt;/year&amp;gt;
    &amp;lt;/book&amp;gt;
&amp;lt;/books&amp;gt;,
  XSLT: &amp;lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&amp;gt;
    &amp;lt;xsl:output method="text" omit-xml-declaration="yes" encoding="UTF-8"/&amp;gt;

    &amp;lt;xsl:template match="/books"&amp;gt;
        &amp;lt;xsl:apply-templates select="book"/&amp;gt;
    &amp;lt;/xsl:template&amp;gt;

    &amp;lt;xsl:template match="book"&amp;gt;
        Title: &amp;lt;xsl:value-of select="title"/&amp;gt;&amp;lt;xsl:text&amp;gt;&amp;amp;#10;&amp;lt;/xsl:text&amp;gt;
        Author: &amp;lt;xsl:value-of select="author"/&amp;gt;&amp;lt;xsl:text&amp;gt;&amp;amp;#10;&amp;lt;/xsl:text&amp;gt;
        Year: &amp;lt;xsl:value-of select="year"/&amp;gt;&amp;lt;xsl:text&amp;gt;&amp;amp;#10;&amp;amp;#10;&amp;lt;/xsl:text&amp;gt;
    &amp;lt;/xsl:template&amp;gt;
&amp;lt;/xsl:stylesheet&amp;gt;
}&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;{
  Output: &amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;

        Title: Effective Java

        Author: Joshua Bloch

        Year: 2018


        Title: Clean Code

        Author: Robert C. Martin

        Year: 2008

}&lt;/LI-CODE&gt;&lt;P&gt;However, I agree that using html is a workaround to the problem. But it's odd to use html when the output is not html.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 13:47:12 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/community-chat/xslt-does-not-honor-the-output-element/m-p/9568#M776</guid>
      <dc:creator>iyerha</dc:creator>
      <dc:date>2025-04-08T13:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: XSLT does not honor the output element</title>
      <link>https://systematic.workato.com/t5/community-chat/xslt-does-not-honor-the-output-element/m-p/9575#M777</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/11685"&gt;@iyerha&lt;/a&gt;,&lt;BR /&gt;Here are the small changes:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Your changes:
-----------------
&amp;lt;xsl:output method="text" omit-xml-declaration="yes" encoding="UTF-8"/&amp;gt;

Changes required:
-------------------
&amp;lt;xsl:output method="text" indent="no"/&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HTMLTOTEXT.png" style="width: 660px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1989iD2E5775129965B9B/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="HTMLTOTEXT.png" alt="HTMLTOTEXT.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Thanks and Regards,&lt;BR /&gt;Shivakumara K A&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 07:35:53 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/community-chat/xslt-does-not-honor-the-output-element/m-p/9575#M777</guid>
      <dc:creator>shivakumara</dc:creator>
      <dc:date>2025-04-09T07:35:53Z</dc:date>
    </item>
  </channel>
</rss>

