[Mono-bugs] [Bug 58057][Nor] New - ASP.NET directives produce errorneous whitespace

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 5 May 2004 06:50:27 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by jaak@zd.com.pl.

http://bugzilla.ximian.com/show_bug.cgi?id=58057

--- shadow/58057	2004-05-05 06:50:27.000000000 -0400
+++ shadow/58057.tmp.17821	2004-05-05 06:50:27.000000000 -0400
@@ -0,0 +1,57 @@
+Bug#: 58057
+Product: Mono: Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: jaak@zd.com.pl               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: ASP.NET directives produce errorneous whitespace
+
+I have a asp.net control that produces XML. I invoke it like this:
+
+<%@ Page %>
+<%@ Register tagprefix="atm" Namespace="xxx" Assembly="xxx" %>
+<atm:zzz runat="server" />
+
+The output of this page is incorrect because it contains two empty lines at
+the beginning which confuses Mozilla Firefox XML parser (and many others):
+
+------------------------
+{EMPTY_LINE}
+{EMPTY_LINE}
+<?xml version="1.0" ?>
+<zzz>
+</zzz>
+------------------------
+
+Under MS.NET it works:
+------------------------
+<?xml version="1.0" ?>
+<zzz>
+</zzz>
+------------------------
+
+Note that when I remove extra whitespace by putting @Page, @Register and
+the custom control on the same line, I can get it to work:
+
+<%@ Page %><%@ Register tagprefix="atm" Namespace="xxx" Assembly="xxx"
+%><atm:zzz runat="server" />
+
+Under Mono it produces:
+------------------------
+<?xml version="1.0" ?>
+<zzz>
+</zzz>
+------------------------
+
+This is kind-of important because it makes porting of XML/XSL applications
+to mono tedious.