Skip to content
LambogeniusDocs

Compose using XSLT for Azure Logic Apps

Inputs and outputs

Every input of the ComposeXslt action and what it returns.

Service provider/serviceProviders/lamboXsltComposeOperation ComposeXslt, shown in the designer as Compose using XSLT.

Inputs

InputTypeNotes
contentstring, requiredThe XML to transform: @{triggerBody()}, @{body('X')}. JSON objects and $content envelopes are rejected.
mapSourcedeployed | inlineDefault deployed.
mapNamestringDeployed maps: the path under the map folder, /-separated, for example orders/order-to-sales-order.xslt. Can be an expression.
xsltstringInline maps: the stylesheet text. Inline maps cannot include or import.
parametersobjectxsl:param values by name: string, boolean or number. See Parameters and variables.
enableScriptsbooleanRuns msxsl:script C#. Default false.
allowedFunctionAliasesstring arrayFunctions this action may call from the map. Default none.
timeoutSecondsintegerDeadline for the whole action; can only lower the host limit (60 s by default).

Outputs

{
  "result": "<SalesOrder>…</SalesOrder>",
  "contentType": "application/xml; charset=utf-8",
  "encoding": "utf-8",
  "outputMethod": "xml",
  "mapHash": "77d3a5d72599105f94c30b7636d702615102031751956eff5517aa7b0fa42186",
  "diagnostics": {
    "durationMs": 14, "compileCacheHit": true, "compileMs": 0, "transformMs": 2,
    "inputBytes": 830, "outputBytes": 664, "functionCallCount": 0, "functionCacheHitCount": 0,
    "correlationId": "…", "connectorVersion": "1.1.1+…", "engineProfile": "xslt1.0-xslcompiledtransform"
  }
}
  • result is always a string. Use xml(body('Compose_using_XSLT')?['result']) with xpath(), or json(…) when the map writes JSON text.
  • contentType follows xsl:output method: application/xml, text/html or text/plain, always charset=utf-8.
  • mapHash is a SHA-256 over the map and every module it includes or imports: it changes when any of them changes.
  • diagnostics has timings, compile cache hits and Function call counts, handy as response headers while testing.