Azure / azure-quickstart-templates

Azure Quickstart Templates
https://aka.ms/azqst
MIT License
14.05k stars 16.12k forks source link

201-logic-app-transform-function Transform not omitting XML declaration #2730

Open mikaelsand opened 8 years ago

mikaelsand commented 8 years ago

201-logic-app-transform-function

Issue Details

Functionality for transformation seems to add an XML declaration. I have tried:

  1. Really making sure the XSLT is correct.
  2. Really making sure the XSLT works locally.
  3. Really made sure the XSLT deployed was correct.
  4. Sent messages both containing and not containing XML-declaration: Same result.

Here is part of the XSLT:

I realized that this is a setting on the outgoing XML writer. Perhaps you could add functionality for this or to check for it in the XSLT-file?
marcvaneijk commented 7 years ago

Adding @rarayudu and @jaakhter

anilst2017 commented 1 year ago

Consumption logic app provides the dropdown for 'Apply XSLT output attributes'. But , I have observed this behavior with Standard Logic apps also. The main difference between Consumption and Standard logic apps is that the Standard logic app is not providing the dropdown for 'Applying XSLT Output attributes' to the 'Transform XML' action. The only way to achieve this is to a. add the Omit XML declaration in XSLT b. Add "transformOptions": "applyXsltOutputAttributes" in the after 'map' block in the standard logic app workflow json code.

I tested this and it works superfine.