diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2006-01-11 06:58:58 +0300 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2006-01-11 06:58:58 +0300 |
commit | 8817da9673a43ffd0c1d257ff5b37cdb131cd82d (patch) | |
tree | f68cb338e15d34220c4a309090ef46ba309416f3 /mcs/class | |
parent | 49bed659ed6dde02d43df26670745341d4062383 (diff) |
2006-01-11 Atsushi Enomoto <atsushi@ximian.com>
* DTDObjectModel.cs : dtd2xsd fix; set use="optional" when an
attribute is #IMPLIED.
svn path=/trunk/mcs/; revision=55359
Diffstat (limited to 'mcs/class')
-rw-r--r-- | mcs/class/System.XML/System.Xml/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/System.XML/System.Xml/DTDObjectModel.cs | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/mcs/class/System.XML/System.Xml/ChangeLog b/mcs/class/System.XML/System.Xml/ChangeLog index c7d7c295879..0c1746d3b3f 100644 --- a/mcs/class/System.XML/System.Xml/ChangeLog +++ b/mcs/class/System.XML/System.Xml/ChangeLog @@ -1,3 +1,8 @@ +2006-01-11 Atsushi Enomoto <atsushi@ximian.com> + + * DTDObjectModel.cs : dtd2xsd fix; set use="optional" when an + attribute is #IMPLIED. + 2006-01-06 Atsushi Enomoto <atsushi@ximian.com> * XmlWriter.cs : In WriteNode(XPathNavigator, bool), Avoid diff --git a/mcs/class/System.XML/System.Xml/DTDObjectModel.cs b/mcs/class/System.XML/System.Xml/DTDObjectModel.cs index e411b8fa08d..bae72caa7ba 100644 --- a/mcs/class/System.XML/System.Xml/DTDObjectModel.cs +++ b/mcs/class/System.XML/System.Xml/DTDObjectModel.cs @@ -833,6 +833,8 @@ namespace Mono.Xml SetLineInfo (a); a.Name = Name; a.DefaultValue = resolvedNormalizedDefaultValue; + if (OccurenceType != DTDAttributeOccurenceType.Required) + a.Use = XmlSchemaUse.Optional; XmlQualifiedName qname = XmlQualifiedName.Empty; ArrayList enumeration = null; |