1

I developed code in AWS lambda using C#, .NET Core framework. I have to transform XML(input string to my lambda function) with XSLT(hard coded in my lambda code) in my lambda code. in order to do so i tried use System.Xml.Xsl but after investigation I understood that .Net Core doesn't support System.Xml.Xsl library. how can i do it otherwise?

1
  • Consider adding a tag for that platform/environment (AWS lamda) so that people with some knowledge on that can help. Commented Feb 28, 2017 at 15:00

1 Answer 1

0

As I mentioned here in details, you need to upgrade your .NET Core 1.x app to .NET Core 2.0, because .NET Core 2.0 implements .NET Standard 2.0, which has System.Xml.Xsl namespace supported again. And you will be able to use XslTransform or XslCompiledTransform as we did before with .NET Frameworks

Sign up to request clarification or add additional context in comments.

2 Comments

But as i saw in AWS Lambda Function documentation, it supports .NET Core 1.0 only, not so?
@Dindin yes, "AWS Lambda will skip .NET Core 1.1 in flavor to .NET Core 2.0 which is going to be released this year" github.com/aws/aws-sdk-net/issues/572 As a workaround until it's released, you could consider to move XSL related logic to separate WebAPI app (.NET Core 2.0) for example and call APIs from your AWS Lambda Function logic via HttpClient for example.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.