[Mono-bugs] [Bug 42739][Nor] New - Improper handeling of namespaces in System.Xml.Xsl

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Sat, 10 May 2003 13:07:10 -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 bmaurer@users.sf.net.

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

--- shadow/42739	Sat May 10 13:07:10 2003
+++ shadow/42739.tmp.9413	Sat May 10 13:07:10 2003
@@ -0,0 +1,72 @@
+Bug#: 42739
+Product: Mono/Class Libraries
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System.XML
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bmaurer@users.sf.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Improper handeling of namespaces in System.Xml.Xsl
+
+Description of Problem:
+
+System.Xml.Xsl improperly handles namespaces in XML files it is transforming. 
+
+Steps to reproduce the problem:
+1. Download the archive attached and extract the files inside
+2. mcs netxsltproc.cs
+3. mono netxsltproc.exe test.xsl fail.xsl
+
+Actual Results:
+Entity: line 1: warning: Namespace prefix a is not defined
+<?xml version="1.0" encoding="utf-8"?><a:tst a="http://example.org/"><a:doc /><
+                                                                   ^
+Entity: line 1: warning: Namespace prefix a is not defined
+<?xml version="1.0" encoding="utf-8"?><a:tst a="http://example.org/"><a:doc /><
+                                                                           ^
+Entity: line 1: warning: Namespace prefix a is not defined
+ version="1.0" encoding="utf-8"?><a:tst a="http://example.org/"><a:doc /><a:doc
+                                                                              ^
+Entity: line 1: warning: Namespace prefix a is not defined
+"1.0" encoding="utf-8"?><a:tst a="http://example.org/"><a:doc /><a:doc /><a:doc
+                                                                              ^
+Entity: line 1: warning: Namespace prefix a is not defined
+oding="utf-8"?><a:tst a="http://example.org/"><a:doc /><a:doc /><a:doc /><a:doc
+                                                                              ^
+Entity: line 1: warning: Namespace prefix a is not defined
+tf-8"?><a:tst a="http://example.org/"><a:doc /><a:doc /><a:doc /><a:doc /><a:do
+                                                                              ^
+Entity: line 1: warning: Namespace prefix a is not defined
+//example.org/"><a:doc /><a:doc /><a:doc /><a:doc /><a:doc>Failed</a:doc><a:doc
+                                                                              ^
+Entity: line 1: warning: Namespace prefix a is not defined
+.org/"><a:doc /><a:doc /><a:doc /><a:doc /><a:doc>Failed</a:doc><a:doc /><a:doc
+                                                                              ^
+Entity: line 1: warning: Namespace prefix a is not defined
+:doc /><a:doc /><a:doc /><a:doc /><a:doc>Failed</a:doc><a:doc /><a:doc /><a:doc
+                                                                              ^
+Failed
+
+
+Expected Results:
+<?xml version="1.0"?>
+        success
+
+(this was the output when xsltproc test.xsl fail.xml was run)
+
+How often does this happen?
+Always.
+
+
+Additional Information:
+The test included was from the libxslt test suite. A file "pass.xml" was
+also included from this test suite. This test *is* handeled correctly by
+System.Xml.Xsl.