XSLT Transformation on xml in C#.Net (Apple Safari)
HI
I am transforming XSLT on my xml on C#.Net code and returning back xml string to javascript code, When I am checking from IE xml string is coming with all attribute and value with XSLT transformation, But when I am checking same code on Apple safari that return xml string is coming with attribute which does contain any value.
Here is the C# method which I am calling from javascript functaion, same code I am using for both, can any one help me in this,
public string getTransformedXSLTTemplateTicketBlock(string xmlString, string xsltString, string parameters)
{
string ticketInformation = String.Empty;
try
{
XmlDocument xmlDocument = new XmlDocument();
XslCompiledTransform xslTransform = new XslCompiledTransform();
xslTransform.Load(@"C:TicketBlock.xslt");
xmlDocument.LoadXml(xmlString);
System.Text.StringBuilder xmlBuilder = new System.Text.StringBuilder();
XmlWriterSettings settings = new XmlWriterSettings();
settings.Indent = true;
settings.IndentChars = "t";
//settings.ConformanceLevel = ConformanceLevel.Auto;
XmlWriter xmlWriter = XmlWriter.Create(xmlBuilder);
xslTransform.Transform(new XmlNodeReader(xmlDocument), xmlWriter);
ticketInformation.TicketsXml = xmlBuilder.ToString(); //xmlDocument.OuterXml;
}
catch (Exception ex)
{
}
return ticketInformation;
}
Thanks in advance,
Dhara.
Questions by Dhara3011 answers by Dhara3011
This Question is not yet answered!
Related Answered Questions
Related Open Questions
XSLT Transformation on xml in C#.Net (Apple Safari)
I am transforming XSLT on my xml on C#.Net code and returning back xml string to javascript code, When I am checking from IE xml string is coming with all attribute and value with XSLT transformation, But when I am checking same code on Apple safari that return xml string is coming with attribute which does contain any value.
Here is the C# method which I am calling from javascript functaion, same code I am using for both, can any one help me in this,
public string getTransformedXSLTTemplateTicketBlock(string xmlString, string xsltString, string parameters)
{
string ticketInformation = String.Empty;
try
{
XmlDocument xmlDocument = new XmlDocument();
XslCompiledTransform xslTransform = new XslCompiledTransform();
xslTransform.Load(@"C:TicketBlock.xslt");
xmlDocument.LoadXml(xmlString);
System.Text.StringBuilder xmlBuilder = new System.Text.StringBuilder();
XmlWriterSettings settings = new XmlWriterSettings();
settings.Indent = true;
settings.IndentChars = "t";
//settings.ConformanceLevel = ConformanceLevel.Auto;
XmlWriter xmlWriter = XmlWriter.Create(xmlBuilder);
xslTransform.Transform(new XmlNodeReader(xmlDocument), xmlWriter);
ticketInformation.TicketsXml = xmlBuilder.ToString(); //xmlDocument.OuterXml;
}
catch (Exception ex)
{
}
return ticketInformation;
}
Thanks in advance,
Dhara.
Profile Answers by Dhara3011 Questions by Dhara3011
Questions by Dhara3011 answers by Dhara3011
This Question is not yet answered!
Related Answered Questions
Related Open Questions