GeekInterview.com
Series: Subject: Topic:
Question: 121 of 348

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.

Asked by: Dhara3011 | Member Since Sep-2006 | Asked on: Mar 17th, 2007

View all questions by Dhara3011   View all answers by Dhara3011

This Question is not yet answered!

Related Open Questions

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.