Author: atsushi
Date: 2007-04-24 08:40:40 -0400 (Tue, 24 Apr 2007)
New Revision: 76184

Added:
   trunk/mcs/class/System.XML/Test/XmlFiles/xsd/81360.xsd
   trunk/mcs/class/System.XML/Test/XmlFiles/xsd/81360inc1.xsd
   trunk/mcs/class/System.XML/Test/XmlFiles/xsd/81360inc2.xsd
Modified:
   trunk/mcs/class/System.XML/ChangeLog
   trunk/mcs/class/System.XML/Makefile
   trunk/mcs/class/System.XML/System.Xml.Schema/ChangeLog
   trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchema.cs
   trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaAny.cs
   trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaAnyAttribute.cs
   trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaAttribute.cs
   trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaAttributeGroup.cs
   trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaComplexType.cs
   trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaElement.cs
   trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaGroup.cs
   trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaIdentityConstraint.cs
   trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaNotation.cs
   trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaRedefine.cs
   trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaSimpleType.cs
   trunk/mcs/class/System.XML/Test/System.Xml/ChangeLog
   trunk/mcs/class/System.XML/Test/System.Xml/XsdValidatingReaderTests.cs
   trunk/mcs/class/System.XML/Test/XmlFiles/xsd/ChangeLog
Log:
2007-04-24  Atsushi Enomoto <[EMAIL PROTECTED]>

        * XmlSchema.cs XmlSchemaGroup.cs XmlSchemaAny.cs XmlSchemaElement.cs
          XmlSchemaNotation.cs XmlSchemaComplexType.cs
          XmlSchemaAttributeGroup.cs XmlSchemaSimpleType.cs
          XmlSchemaIdentityConstraint.cs XmlSchemaAnyAttribute.cs
          XmlSchemaRedefine.cs XmlSchemaAttribute.cs :
          avoid incorrect compilation of included schemas, fixed bug #81360.
          more fix for wrong targetNamespace propagation within current
          processing model. Replaced ParentIsSchema field with a property.

        * XsdValidatingReaderTests.cs : added test for bug #81360.

        * 81360.xsd, 81360inc1.xsd, 81360inc2.xsd : new test files.

        * Makefile : added distfiles.



Modified: trunk/mcs/class/System.XML/ChangeLog
===================================================================
--- trunk/mcs/class/System.XML/ChangeLog        2007-04-24 12:13:23 UTC (rev 
76183)
+++ trunk/mcs/class/System.XML/ChangeLog        2007-04-24 12:40:40 UTC (rev 
76184)
@@ -1,3 +1,7 @@
+2007-04-24  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * Makefile : added distfiles.
+
 2006-11-01  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
        * System.Xml_test.dll.sources : added following tests:

Modified: trunk/mcs/class/System.XML/Makefile
===================================================================
--- trunk/mcs/class/System.XML/Makefile 2007-04-24 12:13:23 UTC (rev 76183)
+++ trunk/mcs/class/System.XML/Makefile 2007-04-24 12:40:40 UTC (rev 76184)
@@ -56,7 +56,7 @@
        ChangeLog nested-included.dtd literal-data.xml nested-dtd-test.dtd 
nested-dtd-test.xml simple.xml \
        xsl/ChangeLog xsl/empty.xsl \
        XsdValidation/ChangeLog XsdValidation/1.xsd XsdValidation/2.xsd 
XsdValidation/3.xsd XsdValidation/4.xsd \
-       xsd/ChangeLog xsd/1.xsd xsd/2.xsd xsd/3.xsd xsd/4.xsd xsd/5.xsd 
xsd/6.xsd xsd/xml.xsd
+       xsd/ChangeLog xsd/1.xsd xsd/2.xsd xsd/3.xsd xsd/4.xsd xsd/5.xsd 
xsd/6.xsd xsd/xml.xsd xsd/81360.xsd xsd/81360inc1.xsd xsd/81360inc2.xsd
 
 EXTRA_DISTFILES = \
        System.Xml.Schema/BUGS-MS.txt   \

Modified: trunk/mcs/class/System.XML/System.Xml.Schema/ChangeLog
===================================================================
--- trunk/mcs/class/System.XML/System.Xml.Schema/ChangeLog      2007-04-24 
12:13:23 UTC (rev 76183)
+++ trunk/mcs/class/System.XML/System.Xml.Schema/ChangeLog      2007-04-24 
12:40:40 UTC (rev 76184)
@@ -1,5 +1,16 @@
 2007-04-24  Atsushi Enomoto <[EMAIL PROTECTED]>
 
+       * XmlSchema.cs XmlSchemaGroup.cs XmlSchemaAny.cs XmlSchemaElement.cs
+         XmlSchemaNotation.cs XmlSchemaComplexType.cs
+         XmlSchemaAttributeGroup.cs XmlSchemaSimpleType.cs
+         XmlSchemaIdentityConstraint.cs XmlSchemaAnyAttribute.cs
+         XmlSchemaRedefine.cs XmlSchemaAttribute.cs :
+         avoid incorrect compilation of included schemas, fixed bug #81360.
+         more fix for wrong targetNamespace propagation within current
+         processing model. Replaced ParentIsSchema field with a property.
+
+2007-04-24  Atsushi Enomoto <[EMAIL PROTECTED]>
+
        * XmlSchema.cs XmlSchemaSimpleTypeList.cs
          XmlSchemaComplexContentRestriction.cs XmlSchemaGroup.cs
          XmlSchemaComplexContentExtension.cs XmlSchemaSequence.cs

Modified: trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchema.cs
===================================================================
--- trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchema.cs   2007-04-24 
12:13:23 UTC (rev 76183)
+++ trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchema.cs   2007-04-24 
12:40:40 UTC (rev 76184)
@@ -450,9 +450,7 @@
                                                includedSchema.TargetNamespace 
= TargetNamespace;
                                }
 
-                               // Compile included schema.
-                               // FIXME: this compilation causes bug #81360
-                               includedSchema.DoCompile (handler, handledUris, 
col, resolver);
+                               // Do not compile included schema here.
 
                                AddExternalComponentsTo (includedSchema, 
compilationItems);
                        }
@@ -469,7 +467,6 @@
                                        errorCount += numerr;
                                } else if (obj is XmlSchemaAttribute) {
                                        XmlSchemaAttribute attr = 
(XmlSchemaAttribute) obj;
-                                       attr.ParentIsSchema = true;
                                        int numerr = attr.Compile (handler, 
this);
                                        errorCount += numerr;
                                        if(numerr == 0)
@@ -488,7 +485,6 @@
                                                        handler);
                                } else if (obj is XmlSchemaComplexType) {
                                        XmlSchemaComplexType ctype = 
(XmlSchemaComplexType) obj;
-                                       ctype.ParentIsSchema = true;
                                        int numerr = ctype.Compile (handler, 
this);
                                        errorCount += numerr;
                                        if (numerr == 0)

Modified: trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaAny.cs
===================================================================
--- trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaAny.cs        
2007-04-24 12:13:23 UTC (rev 76183)
+++ trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaAny.cs        
2007-04-24 12:40:40 UTC (rev 76184)
@@ -132,7 +132,7 @@
                        errorCount = 0;
 
                        XmlSchemaUtil.CompileID(Id,this, schema.IDCollection,h);
-                       wildcard.TargetNamespace = schema.TargetNamespace;
+                       wildcard.TargetNamespace = 
AncestorSchema.TargetNamespace;
                        if (wildcard.TargetNamespace == null)
                                wildcard.TargetNamespace = "";
                        CompileOccurence (h, schema);

Modified: trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaAnyAttribute.cs
===================================================================
--- trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaAnyAttribute.cs       
2007-04-24 12:13:23 UTC (rev 76183)
+++ trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaAnyAttribute.cs       
2007-04-24 12:40:40 UTC (rev 76184)
@@ -111,7 +111,7 @@
 
                        errorCount = 0;
 
-                       wildcard.TargetNamespace = schema.TargetNamespace;
+                       wildcard.TargetNamespace = 
AncestorSchema.TargetNamespace;
                        if (wildcard.TargetNamespace == null)
                                wildcard.TargetNamespace = "";
 

Modified: trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaAttribute.cs
===================================================================
--- trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaAttribute.cs  
2007-04-24 12:13:23 UTC (rev 76183)
+++ trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaAttribute.cs  
2007-04-24 12:40:40 UTC (rev 76184)
@@ -57,7 +57,9 @@
                private XmlSchemaUse use;
                private XmlSchemaUse validatedUse;
                //Compilation fields
-               internal bool ParentIsSchema = false;
+               internal bool ParentIsSchema {
+                       get { return Parent is XmlSchema; }
+               }
                private XmlSchemaAttribute referencedAttribute;
                const string xmlname = "attribute";
 
@@ -284,7 +286,7 @@
                                if(RefName == null || RefName.IsEmpty)
                                {
                                        if(form == XmlSchemaForm.Qualified || 
(form == XmlSchemaForm.None && schema.AttributeFormDefault == 
XmlSchemaForm.Qualified))
-                                               this.targetNamespace = 
schema.TargetNamespace;
+                                               this.targetNamespace = 
AncestorSchema.TargetNamespace;
                                        else
                                                this.targetNamespace = "";
 
@@ -341,7 +343,7 @@
                                        qualifiedName = RefName;
                        }
 
-                       if(schema.TargetNamespace == 
XmlSchema.InstanceNamespace && Name != "nil" && Name != "type" 
+                       if(AncestorSchema.TargetNamespace == 
XmlSchema.InstanceNamespace && Name != "nil" && Name != "type" 
                                && Name != "schemaLocation" && Name != 
"noNamespaceSchemaLocation") // a.15, a.16
                                error(h,"targetNamespace can't be " + 
XmlSchema.InstanceNamespace);
 
@@ -463,6 +465,18 @@
                        return errorCount;
                }
 
+               internal bool AttributeEquals (XmlSchemaAttribute other)
+               {
+                       if (Id != other.Id ||
+                           QualifiedName != other.QualifiedName ||
+                           AttributeType != other.AttributeType ||
+                           ValidatedUse != other.ValidatedUse ||
+                           ValidatedDefaultValue != 
other.ValidatedDefaultValue ||
+                           ValidatedFixedValue != other.ValidatedFixedValue)
+                               return false;
+                       return true;
+               }
+
                //<attribute
                //  default = string
                //  fixed = string

Modified: 
trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaAttributeGroup.cs
===================================================================
--- trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaAttributeGroup.cs     
2007-04-24 12:13:23 UTC (rev 76183)
+++ trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaAttributeGroup.cs     
2007-04-24 12:40:40 UTC (rev 76184)
@@ -137,7 +137,7 @@
                        else if(!XmlSchemaUtil.CheckNCName(this.Name)) // b.1.2
                                error(h,"name attribute of a simpleType must be 
NCName");
                        else
-                               this.qualifiedName = new 
XmlQualifiedName(this.Name, schema.TargetNamespace);
+                               this.qualifiedName = new 
XmlQualifiedName(this.Name, AncestorSchema.TargetNamespace);
                        
                        if(this.AnyAttribute != null)
                        {

Modified: trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaComplexType.cs
===================================================================
--- trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaComplexType.cs        
2007-04-24 12:13:23 UTC (rev 76183)
+++ trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaComplexType.cs        
2007-04-24 12:40:40 UTC (rev 76184)
@@ -54,7 +54,9 @@
                private XmlSchemaContentType resolvedContentType;
 
                internal bool ValidatedIsAbstract;
-               internal bool ParentIsSchema = false;
+               internal bool ParentIsSchema {
+                       get { return Parent is XmlSchema; }
+               }
 
                const string xmlname = "complexType";
 

Modified: trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaElement.cs
===================================================================
--- trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaElement.cs    
2007-04-24 12:13:23 UTC (rev 76183)
+++ trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaElement.cs    
2007-04-24 12:40:40 UTC (rev 76184)
@@ -453,7 +453,7 @@
                                        string targetNamespace = String.Empty;
 
                                        if(form == XmlSchemaForm.Qualified || 
(form == XmlSchemaForm.None && schema.ElementFormDefault == 
XmlSchemaForm.Qualified))
-                                               targetNamespace = 
schema.TargetNamespace;
+                                               targetNamespace = 
AncestorSchema.TargetNamespace;
 
                                        if(this.name == null)   //b1
                                                error(h,"Required attribute 
name must be present");

Modified: trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaGroup.cs
===================================================================
--- trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaGroup.cs      
2007-04-24 12:13:23 UTC (rev 76183)
+++ trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaGroup.cs      
2007-04-24 12:40:40 UTC (rev 76184)
@@ -101,7 +101,7 @@
                        else if(!XmlSchemaUtil.CheckNCName(this.name)) 
                                error(h,"attribute name must be NCName");
                        else
-                               qualifiedName = new 
XmlQualifiedName(Name,schema.TargetNamespace);
+                               qualifiedName = new XmlQualifiedName(Name, 
AncestorSchema.TargetNamespace);
 
                        if(Particle == null)
                        {

Modified: 
trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaIdentityConstraint.cs
===================================================================
--- trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaIdentityConstraint.cs 
2007-04-24 12:13:23 UTC (rev 76183)
+++ trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaIdentityConstraint.cs 
2007-04-24 12:40:40 UTC (rev 76184)
@@ -102,7 +102,7 @@
                        else if(!XmlSchemaUtil.CheckNCName(this.name)) 
                                error(h,"attribute name must be NCName");
                        else {
-                               this.qName = new 
XmlQualifiedName(Name,schema.TargetNamespace);
+                               this.qName = new XmlQualifiedName(Name, 
AncestorSchema.TargetNamespace);
                                if (schema.NamedIdentities.Contains (qName)) {
                                        XmlSchemaIdentityConstraint existing =
                                                schema.NamedIdentities [qName] 
as XmlSchemaIdentityConstraint;

Modified: trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaNotation.cs
===================================================================
--- trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaNotation.cs   
2007-04-24 12:13:23 UTC (rev 76183)
+++ trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaNotation.cs   
2007-04-24 12:40:40 UTC (rev 76184)
@@ -79,7 +79,7 @@
                        else if(!XmlSchemaUtil.CheckNCName(this.name)) 
                                error(h,"attribute name must be NCName");
                        else
-                               qualifiedName = new 
XmlQualifiedName(Name,schema.TargetNamespace);
+                               qualifiedName = new XmlQualifiedName(Name, 
AncestorSchema.TargetNamespace);
 
                        if(Public==null)
                                error(h,"public must be present");

Modified: trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaRedefine.cs
===================================================================
--- trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaRedefine.cs   
2007-04-24 12:13:23 UTC (rev 76183)
+++ trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaRedefine.cs   
2007-04-24 12:40:40 UTC (rev 76184)
@@ -78,8 +78,11 @@
                internal override void SetParent (XmlSchemaObject parent)
                {
                        base.SetParent (parent);
-                       foreach (XmlSchemaObject i in Items)
+                       foreach (XmlSchemaObject i in Items) {
                                i.SetParent (this);
+                               i.isRedefinedComponent = true;
+                               i.isRedefineChild = true;
+                       }
                }
 
 //<redefine 

Modified: trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaSimpleType.cs
===================================================================
--- trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaSimpleType.cs 
2007-04-24 12:13:23 UTC (rev 76183)
+++ trunk/mcs/class/System.XML/System.Xml.Schema/XmlSchemaSimpleType.cs 
2007-04-24 12:40:40 UTC (rev 76184)
@@ -277,7 +277,7 @@
                                else if(!XmlSchemaUtil.CheckNCName(this.Name)) 
// b.1.2
                                        error(h,"name attribute of a simpleType 
must be NCName");
                                else
-                                       this.QNameInternal = new 
XmlQualifiedName(this.Name,schema.TargetNamespace);
+                                       this.QNameInternal = new 
XmlQualifiedName(this.Name, AncestorSchema.TargetNamespace);
                                
                                //NOTE: Although the FinalResolved can be 
Empty, it is not a valid value for Final
                                //DEVIATION: If an error occurs, the 
finaldefault is always consulted. This deviates

Modified: trunk/mcs/class/System.XML/Test/System.Xml/ChangeLog
===================================================================
--- trunk/mcs/class/System.XML/Test/System.Xml/ChangeLog        2007-04-24 
12:13:23 UTC (rev 76183)
+++ trunk/mcs/class/System.XML/Test/System.Xml/ChangeLog        2007-04-24 
12:40:40 UTC (rev 76184)
@@ -1,3 +1,7 @@
+2007-04-24  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * XsdValidatingReaderTests.cs : added test for bug #81360.
+
 2007-04-03  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
        * XmlTextReaderTests.cs : added test for bug #81294.

Modified: trunk/mcs/class/System.XML/Test/System.Xml/XsdValidatingReaderTests.cs
===================================================================
--- trunk/mcs/class/System.XML/Test/System.Xml/XsdValidatingReaderTests.cs      
2007-04-24 12:13:23 UTC (rev 76183)
+++ trunk/mcs/class/System.XML/Test/System.Xml/XsdValidatingReaderTests.cs      
2007-04-24 12:40:40 UTC (rev 76184)
@@ -362,5 +362,21 @@
                        while (!vr.EOF)
                                vr.Read ();
                }
+
+               [Test]
+               public void Bug81360 ()
+               {
+                       string schemaFile = "Test/XmlFiles/xsd/81360.xsd";
+                       XmlTextReader treader = new XmlTextReader (schemaFile);
+                       XmlSchema sc = XmlSchema.Read (treader, null);
+                       sc.Compile (null);
+                       string xml = @"<body xmlns='" + sc.TargetNamespace + 
"'><div></div></body>";
+                       XmlTextReader reader = new XmlTextReader (new 
StringReader (xml));
+                       XmlValidatingReader validator = new XmlValidatingReader 
(reader);
+                       validator.Schemas.Add (sc);
+                       validator.ValidationType = ValidationType.Schema;
+                       while (!validator.EOF)
+                               validator.Read ();
+               }
        }
 }

Added: trunk/mcs/class/System.XML/Test/XmlFiles/xsd/81360.xsd
===================================================================
--- trunk/mcs/class/System.XML/Test/XmlFiles/xsd/81360.xsd      2007-04-24 
12:13:23 UTC (rev 76183)
+++ trunk/mcs/class/System.XML/Test/XmlFiles/xsd/81360.xsd      2007-04-24 
12:40:40 UTC (rev 76184)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
+           targetNamespace="http://www.w3.org/1999/xhtml";
+           xmlns="http://www.w3.org/1999/xhtml";
+                  blockDefault="#all">
+       <xs:include schemaLocation="81360inc1.xsd"/>
+       <xs:include schemaLocation="81360inc2.xsd"/>
+</xs:schema>

Added: trunk/mcs/class/System.XML/Test/XmlFiles/xsd/81360inc1.xsd
===================================================================
--- trunk/mcs/class/System.XML/Test/XmlFiles/xsd/81360inc1.xsd  2007-04-24 
12:13:23 UTC (rev 76183)
+++ trunk/mcs/class/System.XML/Test/XmlFiles/xsd/81360inc1.xsd  2007-04-24 
12:40:40 UTC (rev 76184)
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
+           targetNamespace="http://www.w3.org/1999/xhtml";
+           xmlns="http://www.w3.org/1999/xhtml";>
+
+       <xs:group name="BlkStruct.class">
+               <xs:choice>
+                       <xs:element ref="p"/>
+                       <xs:element ref="div"/>
+               </xs:choice>
+       </xs:group>
+
+
+       <xs:group name="Flow.mix">
+               <xs:choice>
+                       <xs:group ref="Block.class"/>
+               </xs:choice>
+       </xs:group>
+
+       <xs:group name="Block.class">
+               <xs:choice>
+                       <xs:group ref="BlkStruct.class"/>
+               </xs:choice>
+       </xs:group>
+
+       <xs:group name="Block.mix">
+               <xs:choice>
+                       <xs:group ref="Block.class"/>
+               </xs:choice>
+       </xs:group>
+
+</xs:schema>

Added: trunk/mcs/class/System.XML/Test/XmlFiles/xsd/81360inc2.xsd
===================================================================
--- trunk/mcs/class/System.XML/Test/XmlFiles/xsd/81360inc2.xsd  2007-04-24 
12:13:23 UTC (rev 76183)
+++ trunk/mcs/class/System.XML/Test/XmlFiles/xsd/81360inc2.xsd  2007-04-24 
12:40:40 UTC (rev 76184)
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
+           targetNamespace="http://www.w3.org/1999/xhtml";
+           xmlns="http://www.w3.org/1999/xhtml";>
+       
+       
+       <xs:group name="body.content">
+               <xs:sequence>
+                       <xs:group ref="Block.mix" maxOccurs="unbounded"/>
+               </xs:sequence>
+       </xs:group>
+
+       <xs:complexType name="body.type">
+               <xs:group ref="body.content"/>
+       </xs:complexType>
+
+       <xs:element name="body" type="body.type"/>
+
+
+       <xs:complexType name="p.type" mixed="true">
+               <xs:group ref="p.content"/>
+       </xs:complexType>
+
+       <xs:element name="p" type="p.type"/>
+
+       <xs:group name="div.content">
+               <xs:sequence>
+                       <xs:group ref="Flow.mix" minOccurs="0" 
maxOccurs="unbounded"/>
+               </xs:sequence>
+       </xs:group>
+
+       <xs:complexType name="div.type" mixed="true">
+               <xs:group ref="div.content"/>
+       </xs:complexType>
+
+       <xs:element name="div" type="div.type"/>
+
+
+       <xs:group name="p.content">
+               <xs:sequence>
+                       <xs:group ref="Flow.mix" minOccurs="0" 
maxOccurs="unbounded"/>
+               </xs:sequence>
+       </xs:group>
+
+
+</xs:schema>

Modified: trunk/mcs/class/System.XML/Test/XmlFiles/xsd/ChangeLog
===================================================================
--- trunk/mcs/class/System.XML/Test/XmlFiles/xsd/ChangeLog      2007-04-24 
12:13:23 UTC (rev 76183)
+++ trunk/mcs/class/System.XML/Test/XmlFiles/xsd/ChangeLog      2007-04-24 
12:40:40 UTC (rev 76184)
@@ -1,3 +1,7 @@
+2007-04-24  Atsushi Enomoto <[EMAIL PROTECTED]>
+
+       * 81360.xsd, 81360inc1.xsd, 81360inc2.xsd : new test files.
+
 2006-10-27  Atsushi Enomoto <[EMAIL PROTECTED]>
 
        * 79650.xsd : added test for bug #79650.

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to