Is there a way to do in Silverlight what XslCompiledTransform does in full .NET?
The System.Xml.Xsl namespace is obviously not complete in SL.
Is there a way to do in Silverlight what XslCompiledTransform does in full .NET?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The simplistic answer is: no. Its also difficult to conceive a reason why you would want to but I’m sure you must have one.
If you really do need to use existing XSL tranforms on XML and your silverlight app is designed to run in-browser then you can enlist the host browsers help in performing a transform.
For example, for IE you can use:-
Now given two strings, the xml and the xsl you use:-
Of course to make this cross browser you will need to detect the browser and inject the correct code to the transform function. Some browsers will make you jump through more hoops than others but it can be done.