Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Error: Cannot construct namespace declaration ... >Thread Next - Re: Error: Cannot construct namespace declaration ... Re: Error: Cannot construct namespace declaration ...To: NULL Date: 8/3/2005 1:28:00 PM Slava Sedov wrote: > Server Error in '/publ2005' Application. So you are using ASP.NET, is that right? > Cannot construct namespace declaration > xmlns:='http://www.w3.org/1999/xhtml'. Prefix '' is already mapped to > namespace ''. > Description: An unhandled exception occurred during the execution of the > current web request. Please review the stack trace for more information about > the error and where it originated in the code. > > Exception Details: System.Xml.Xsl.XslTransformException: Cannot construct > namespace declaration xmlns:='http://www.w3.org/1999/xhtml'. Prefix '' is > already mapped to namespace ''. > > Source Error: > > Line 260: }; > Line 261: > Line 262: xsltransform.Transform(xml, xsltargs, writer); > Line 263: } > Line 264: public static void WriteXML(XmlDocument xml) > > > Source File: c:\Inetpub\wwwroot\publ2005\mypage.cs Line: 262 > Version Information: Microsoft .NET Framework Version:2.0.50215.312; ASP.NET > Version:2.0.50215.312 ASP.NET 2.0 even. It is not possible for me to see from the stack trace what you are actually doing in the ASP.NET page, the line above obviously suggests that you are calling XslTransform.Transform with some XmlDocument, some args and some writer. Can you try to reduce the code and post a minimal example of the .NET code, the XML input and the XSLT stylesheet creating the error? -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
