Building XSL Mapper with Azure Functions
<ExtensionObjects> | |
<ExtensionObject | |
Namespace="http://schemas.microsoft.com/BizTalk/2003/ScriptNS0" | |
AssemblyName="Fully.Qualified.Assembly.Name, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d7e94ac1875c97e9" | |
ClassName="Fully.Qualified.Class.Name" /> | |
</ExtensionObjects> |
{ | |
"inputXml": "<ESCAPED XML=\"STRING\" />", | |
"mapper": { | |
"directory": "[DIRECTORY NAME IN THE CONTAINER]", | |
"name": "XSL_MAPPER_NAME.xsl" | |
}, | |
"extensionObjects": [ | |
{ | |
"directory": "[DIRECTORY NAME IN THE CONTAINER]", | |
"name": "LIBRARY.dll", | |
"namespace": "http://schemas.microsoft.com/BizTalk/2003/ScriptNS0", | |
"assemblyName": "Fully.Qualified.Assembly.Name, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d7e94ac1875c97e9", | |
"className": "Fully.Qualified.Class.Name" | |
} | |
] | |
} |
<?xml version="1.0" encoding="UTF-16"?> | |
<xsl:stylesheet | |
version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:msxsl="urn:schemas-microsoft-com:xslt" | |
xmlns:var="http://schemas.microsoft.com/BizTalk/2003/var" | |
... | |
xmlns:userCSharp="http://schemas.microsoft.com/BizTalk/2003/userCSharp" | |
xmlns:ScriptNS0="http://schemas.microsoft.com/BizTalk/2003/ScriptNS0" | |
> | |
<xsl:variable name="var:v1" select="userCSharp:DoSomething1()" /> | |
... | |
<xsl:variable name="var:v2" select="ScriptNS0:DoSomething2()" /> | |
... | |
<msxsl:script language="C#" implements-prefix="userCSharp"><![CDATA[ | |
// Inline C# Code here | |
]]></msxsl:script> | |
</xsl:stylesheet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment