Author: atsushi
Date: 2005-02-26 11:54:11 -0500 (Sat, 26 Feb 2005)
New Revision: 41239
Modified:
trunk/mcs/class/System.XML/Mono.Xml.Xsl/ChangeLog
trunk/mcs/class/System.XML/Mono.Xml.Xsl/XslFunctions.cs
trunk/mcs/class/System.XML/System.Xml/ChangeLog
trunk/mcs/class/System.XML/System.Xml/XmlDocumentNavigator.cs
trunk/mcs/class/System.XML/System.Xml/XmlEntity.cs
Log:
2005-02-26 Atsushi Enomoto <[EMAIL PROTECTED]>
* XslFunctions.cs : unparsed-entity-uri() should return SYSTEM ID
instead of BaseURI.
* XmlEntity.cs : it was not returning SYSTEM ID when there is no
PUBLIC ID.
* XmlDocumentNavigator.cs : On Whitespace followed by DocumentType,
get_NodeType() resulted in loop.
Modified: trunk/mcs/class/System.XML/Mono.Xml.Xsl/ChangeLog
===================================================================
--- trunk/mcs/class/System.XML/Mono.Xml.Xsl/ChangeLog 2005-02-26 14:47:45 UTC
(rev 41238)
+++ trunk/mcs/class/System.XML/Mono.Xml.Xsl/ChangeLog 2005-02-26 16:54:11 UTC
(rev 41239)
@@ -1,3 +1,8 @@
+2005-02-26 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * XslFunctions.cs : unparsed-entity-uri() should return SYSTEM ID
+ instead of BaseURI.
+
2005-02-25 Atsushi Enomoto <[EMAIL PROTECTED]>
* XslTemplate.cs : According to the spec 5.7, it is an error for
Modified: trunk/mcs/class/System.XML/Mono.Xml.Xsl/XslFunctions.cs
===================================================================
--- trunk/mcs/class/System.XML/Mono.Xml.Xsl/XslFunctions.cs 2005-02-26
14:47:45 UTC (rev 41238)
+++ trunk/mcs/class/System.XML/Mono.Xml.Xsl/XslFunctions.cs 2005-02-26
16:54:11 UTC (rev 41239)
@@ -624,8 +624,7 @@
XmlEntity ent = doctype.Entities.GetNamedItem
(arg0.EvaluateString (iter)) as XmlEntity;
if (ent == null)
return String.Empty;
- else
- return ent.BaseURI;
+ return ent.SystemId != null ? ent.SystemId :
String.Empty;
}
}
Modified: trunk/mcs/class/System.XML/System.Xml/ChangeLog
===================================================================
--- trunk/mcs/class/System.XML/System.Xml/ChangeLog 2005-02-26 14:47:45 UTC
(rev 41238)
+++ trunk/mcs/class/System.XML/System.Xml/ChangeLog 2005-02-26 16:54:11 UTC
(rev 41239)
@@ -1,3 +1,10 @@
+2005-02-26 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * XmlEntity.cs : it was not returning SYSTEM ID when there is no
+ PUBLIC ID.
+ * XmlDocumentNavigator.cs : On Whitespace followed by DocumentType,
+ get_NodeType() resulted in loop.
+
2005-02-25 Atsushi Enomoto <[EMAIL PROTECTED]>
* XmlComment.cs, XmlNode.cs, XmlText.cs, XmlProcessingInstruction.cs,
Modified: trunk/mcs/class/System.XML/System.Xml/XmlDocumentNavigator.cs
===================================================================
--- trunk/mcs/class/System.XML/System.Xml/XmlDocumentNavigator.cs
2005-02-26 14:47:45 UTC (rev 41238)
+++ trunk/mcs/class/System.XML/System.Xml/XmlDocumentNavigator.cs
2005-02-26 16:54:11 UTC (rev 41239)
@@ -191,10 +191,10 @@
switch (n.NodeType) {
case XmlNodeType.SignificantWhitespace:
sw = true;
- n = GetNextSibling (node);
+ n = GetNextSibling (n);
break;
case XmlNodeType.Whitespace:
- n = GetNextSibling (node);
+ n = GetNextSibling (n);
break;
case XmlNodeType.Text:
case XmlNodeType.CDATA:
Modified: trunk/mcs/class/System.XML/System.Xml/XmlEntity.cs
===================================================================
--- trunk/mcs/class/System.XML/System.Xml/XmlEntity.cs 2005-02-26 14:47:45 UTC
(rev 41238)
+++ trunk/mcs/class/System.XML/System.Xml/XmlEntity.cs 2005-02-26 16:54:11 UTC
(rev 41239)
@@ -106,21 +106,11 @@
}
public string PublicId {
- get {
- if (publicId == null)
- return null;
- else
- return publicId;
- }
+ get { return publicId; }
}
public string SystemId {
- get {
- if (publicId == null)
- return null;
- else
- return systemId;
- }
+ get { return systemId; }
}
#endregion
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches