You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2006/01/24 20:07:33 UTC

svn commit: r371982 [2/2] - /xerces/java/trunk/tests/schema/config/

Added: xerces/java/trunk/tests/schema/config/UnparsedEntityCheckingTest.java
URL: http://svn.apache.org/viewcvs/xerces/java/trunk/tests/schema/config/UnparsedEntityCheckingTest.java?rev=371982&view=auto
==============================================================================
--- xerces/java/trunk/tests/schema/config/UnparsedEntityCheckingTest.java (added)
+++ xerces/java/trunk/tests/schema/config/UnparsedEntityCheckingTest.java Tue Jan 24 11:07:20 2006
@@ -0,0 +1,156 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package schema.config;
+
+import junit.framework.Assert;
+
+import org.apache.xerces.dom.PSVIElementNSImpl;
+import org.apache.xerces.xs.ItemPSVI;
+import org.xml.sax.SAXException;
+
+/**
+ * @author Peter McCracken, IBM
+ * @version $Id: $
+ */
+public class UnparsedEntityCheckingTest extends BaseTest {
+    
+    public static final String UNDECLARED_ENTITY = "UndeclaredEntity";
+    
+    public static void main(String[] args) {
+        junit.textui.TestRunner.run(UnparsedEntityCheckingTest.class);
+    }
+    
+    protected String getXMLDocument() {
+        return "unparsedEntity.xml";
+    }
+    
+    protected String getSchemaFile() {
+        return "base.xsd";
+    }
+    
+    protected String[] getRelevantErrorIDs() {
+        return new String[] { UNDECLARED_ENTITY };
+    }
+    
+    public UnparsedEntityCheckingTest(String name) {
+        super(name);
+    }
+    
+    public void testDefaultValid() {
+        try {
+            validateDocument();
+        } catch (Exception e) {
+            Assert.fail("Validation failed: " + e.getMessage());
+        }
+        
+        checkDefault();
+    }
+    
+    public void testSetFalseValid() {
+        try {
+            fValidator.setFeature(UNPARSED_ENTITY_CHECKING, false);
+        } catch (SAXException e) {
+            Assert.fail("Error setting feature.");
+        }
+        try {
+            validateDocument();
+        } catch (Exception e) {
+            Assert.fail("Validation failed: " + e.getMessage());
+        }
+        
+        checkDefault();
+    }
+    
+    public void testSetTrueValid() {
+        try {
+            fValidator.setFeature(UNPARSED_ENTITY_CHECKING, true);
+        } catch (SAXException e) {
+            Assert.fail("Error setting feature.");
+        }
+        try {
+            validateDocument();
+        } catch (Exception e) {
+            Assert.fail("Validation failed: " + e.getMessage());
+        }
+        
+        checkDefault();
+    }
+    
+    public void testDefaultInvalid() {
+        ((PSVIElementNSImpl) fRootNode).setAttributeNS(null,
+                "unparsedEntityAttr", "invalid");
+        try {
+            validateDocument();
+        } catch (Exception e) {
+            Assert.fail("Validation failed: " + e.getMessage());
+        }
+        
+        checkInvalid();
+    }
+    
+    public void testSetFalseInvalid() {
+        ((PSVIElementNSImpl) fRootNode).setAttributeNS(null,
+                "unparsedEntityAttr", "invalid");
+        try {
+            fValidator.setFeature(UNPARSED_ENTITY_CHECKING, false);
+        } catch (SAXException e) {
+            Assert.fail("Error setting feature.");
+        }
+        try {
+            validateDocument();
+        } catch (Exception e) {
+            Assert.fail("Validation failed: " + e.getMessage());
+        }
+        
+        checkDefault();
+    }
+    
+    public void testSetTrueInvalid() {
+        ((PSVIElementNSImpl) fRootNode).setAttributeNS(null,
+                "unparsedEntityAttr", "invalid");
+        try {
+            fValidator.setFeature(UNPARSED_ENTITY_CHECKING, true);
+        } catch (SAXException e) {
+            Assert.fail("Error setting feature.");
+        }
+        try {
+            validateDocument();
+        } catch (Exception e) {
+            Assert.fail("Validation failed: " + e.getMessage());
+        }
+        
+        checkInvalid();
+    }
+    
+    private void checkDefault() {
+        assertNoError(UNDECLARED_ENTITY);
+        assertValidity(ItemPSVI.VALIDITY_VALID, fRootNode.getValidity());
+        assertValidationAttempted(ItemPSVI.VALIDATION_FULL, fRootNode
+                .getValidationAttempted());
+        assertElementName("A", fRootNode.getElementDeclaration().getName());
+        assertTypeName("X", fRootNode.getTypeDefinition().getName());
+    }
+    
+    private void checkInvalid() {
+        assertError(UNDECLARED_ENTITY);
+        assertValidity(ItemPSVI.VALIDITY_INVALID, fRootNode.getValidity());
+        assertValidationAttempted(ItemPSVI.VALIDATION_FULL, fRootNode
+                .getValidationAttempted());
+        assertElementName("A", fRootNode.getElementDeclaration().getName());
+        assertTypeName("X", fRootNode.getTypeDefinition().getName());
+    }
+}

Added: xerces/java/trunk/tests/schema/config/UseGrammarPoolOnly_False_Test.java
URL: http://svn.apache.org/viewcvs/xerces/java/trunk/tests/schema/config/UseGrammarPoolOnly_False_Test.java?rev=371982&view=auto
==============================================================================
--- xerces/java/trunk/tests/schema/config/UseGrammarPoolOnly_False_Test.java (added)
+++ xerces/java/trunk/tests/schema/config/UseGrammarPoolOnly_False_Test.java Tue Jan 24 11:07:20 2006
@@ -0,0 +1,82 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package schema.config;
+
+import junit.framework.Assert;
+
+import org.apache.xerces.xs.ItemPSVI;
+
+/**
+ * @author Peter McCracken, IBM
+ * @version $Id: $
+ */
+public class UseGrammarPoolOnly_False_Test extends BaseTest {
+    
+    private final static String UNKNOWN_TYPE_ERROR = "cvc-type.1";
+    private final static String INVALID_DERIVATION_ERROR = "cvc-elt.4.3";
+    
+    public static void main(String[] args) {
+        junit.textui.TestRunner.run(UseGrammarPoolOnly_False_Test.class);
+    }
+    
+    protected String getXMLDocument() {
+        return "otherNamespace.xml";
+    }
+    
+    protected String getSchemaFile() {
+        return "base.xsd";
+    }
+    
+    protected String[] getRelevantErrorIDs() {
+        return new String[] { UNKNOWN_TYPE_ERROR, INVALID_DERIVATION_ERROR };
+    }
+    
+    protected boolean getUseGrammarPoolOnly() {
+        return false;
+    }
+    
+    public UseGrammarPoolOnly_False_Test(String name) {
+        super(name);
+    }
+    
+    /**
+     * The purpose of this test is to check if setting the USE_GRAMMAR_POOL_ONLY
+     * feature to true causes external schemas to not be read. This
+     * functionality already existed prior to adding the new schema features
+     * for Xerces 2.8.0; however, because the class that controlled it changed, 
+     * this test simply ensures that the existing functionality did not disappear.
+     * -PM
+     */
+    public void testUsingOnlyGrammarPool() {
+        try {
+            validateDocument();
+        } 
+        catch (Exception e) {
+            Assert.fail("Validation failed: " + e.getMessage());
+        }
+        
+        assertValidity(ItemPSVI.VALIDITY_VALID, fRootNode.getValidity());
+        assertValidationAttempted(ItemPSVI.VALIDATION_FULL, fRootNode
+                .getValidationAttempted());
+        assertElementName("A", fRootNode.getElementDeclaration().getName());
+        assertElementNamespace("xslt.unittests", fRootNode
+                .getElementDeclaration().getNamespace());
+        assertTypeName("W", fRootNode.getTypeDefinition().getName());
+        assertTypeNamespace("xslt.unittests", fRootNode.getTypeDefinition()
+                .getNamespace());
+    }
+}

Added: xerces/java/trunk/tests/schema/config/UseGrammarPoolOnly_True_Test.java
URL: http://svn.apache.org/viewcvs/xerces/java/trunk/tests/schema/config/UseGrammarPoolOnly_True_Test.java?rev=371982&view=auto
==============================================================================
--- xerces/java/trunk/tests/schema/config/UseGrammarPoolOnly_True_Test.java (added)
+++ xerces/java/trunk/tests/schema/config/UseGrammarPoolOnly_True_Test.java Tue Jan 24 11:07:20 2006
@@ -0,0 +1,71 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package schema.config;
+
+import junit.framework.Assert;
+
+import org.apache.xerces.xs.ItemPSVI;
+
+/**
+ * @author Peter McCracken, IBM
+ * @version $Id: $
+ */
+public class UseGrammarPoolOnly_True_Test extends BaseTest {
+    
+    public static void main(String[] args) {
+        junit.textui.TestRunner.run(UseGrammarPoolOnly_True_Test.class);
+    }
+    
+    protected String getXMLDocument() {
+        return "otherNamespace.xml";
+    }
+    
+    protected String getSchemaFile() {
+        return "base.xsd";
+    }
+    
+    protected boolean getUseGrammarPoolOnly() {
+        return true;
+    }
+    
+    public UseGrammarPoolOnly_True_Test(String name) {
+        super(name);
+    }
+    
+    /**
+     * The purpose of this test is to check if setting the USE_GRAMMAR_POOL_ONLY
+     * feature to true causes external schemas to not be read. This
+     * functionality already existed prior to adding the new schema features
+     * for Xerces 2.8.0; however, because the class that controlled it changed, 
+     * this test simply ensures that the existing functionality did not disappear.
+     * -PM
+     */
+    public void testUsingOnlyGrammarPool() {
+        try {
+            validateDocument();
+        } 
+        catch (Exception e) {
+            Assert.fail("Validation failed: " + e.getMessage());
+        }
+        
+        assertValidity(ItemPSVI.VALIDITY_NOTKNOWN, fRootNode.getValidity());
+        assertValidationAttempted(ItemPSVI.VALIDATION_NONE, fRootNode
+                .getValidationAttempted());
+        assertElementNull(fRootNode.getElementDeclaration());
+        assertAnyType(fRootNode.getTypeDefinition());
+    }
+}

Added: xerces/java/trunk/tests/schema/config/base.xml
URL: http://svn.apache.org/viewcvs/xerces/java/trunk/tests/schema/config/base.xml?rev=371982&view=auto
==============================================================================
--- xerces/java/trunk/tests/schema/config/base.xml (added)
+++ xerces/java/trunk/tests/schema/config/base.xml Tue Jan 24 11:07:20 2006
@@ -0,0 +1,3 @@
+<?xml version="1.0"?>
+<A attr="typeX">
+</A>
\ No newline at end of file

Added: xerces/java/trunk/tests/schema/config/base.xsd
URL: http://svn.apache.org/viewcvs/xerces/java/trunk/tests/schema/config/base.xsd?rev=371982&view=auto
==============================================================================
--- xerces/java/trunk/tests/schema/config/base.xsd (added)
+++ xerces/java/trunk/tests/schema/config/base.xsd Tue Jan 24 11:07:20 2006
@@ -0,0 +1,74 @@
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+  <xsd:element name="A" type="X"/>
+
+  <!-- The purpose of this element is:
+       a) To have a fixed attribute use
+       b) To have an attribute with a fixed attribute declaration
+       c) To have a complex type with simple content and a fixed value
+       d) To have an element declaration with a fixed value
+   -->
+  <xsd:element name="B" fixed="howdy">
+    <xsd:complexType>
+      <xsd:simpleContent>
+        <xsd:extension base="xsd:string">
+          <xsd:attribute ref="fixedAttr" use="required" fixed="hello"/>
+        </xsd:extension>
+      </xsd:simpleContent>
+    </xsd:complexType>
+  </xsd:element>
+  
+  <xsd:element name="D" type="xsd:string" fixed="hey"/>
+
+  <xsd:attribute name="attr" type="xsd:string"/>
+
+  <xsd:attribute name="unparsedEntityAttr" type="xsd:ENTITIES"/>
+
+  <xsd:attribute name="fixedAttr" type="xsd:string" fixed="hello"/>
+
+  <xsd:complexType name="X">
+    <xsd:sequence>
+      <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+    </xsd:sequence>
+    <xsd:attribute ref="attr"/>
+    <xsd:attribute ref="unparsedEntityAttr"/>
+  </xsd:complexType>
+
+  <xsd:complexType name="Y">
+    <xsd:complexContent>
+	    <xsd:restriction base="X">
+		    <xsd:sequence>
+		      <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+		    </xsd:sequence>
+		    <xsd:attribute ref="attr" fixed="typeY"/>
+		    <xsd:attribute ref="unparsedEntityAttr" use="prohibited"/>
+	    </xsd:restriction>
+    </xsd:complexContent>
+  </xsd:complexType>
+
+  <!-- Z is the same as X, but is not derived from X. -->
+  <xsd:complexType name="Z">
+    <xsd:sequence>
+      <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+    </xsd:sequence>
+    <xsd:attribute ref="attr"/>
+    <xsd:attribute ref="unparsedEntityAttr"/>
+  </xsd:complexType>
+  
+  <xsd:complexType name="idType">
+    <xsd:complexContent>
+	    <xsd:extension base="X">
+		    <xsd:attribute name="idAttr" type="xsd:ID"/>
+	    </xsd:extension>
+    </xsd:complexContent>
+  </xsd:complexType>
+
+  <xsd:complexType name="idrefType">
+    <xsd:complexContent>
+	    <xsd:extension base="X">
+		    <xsd:attribute name="idrefAttr" type="xsd:IDREF"/>
+	    </xsd:extension>
+    </xsd:complexContent>
+  </xsd:complexType>
+
+</xsd:schema>
\ No newline at end of file

Added: xerces/java/trunk/tests/schema/config/fixedAttr.xml
URL: http://svn.apache.org/viewcvs/xerces/java/trunk/tests/schema/config/fixedAttr.xml?rev=371982&view=auto
==============================================================================
--- xerces/java/trunk/tests/schema/config/fixedAttr.xml (added)
+++ xerces/java/trunk/tests/schema/config/fixedAttr.xml Tue Jan 24 11:07:20 2006
@@ -0,0 +1,5 @@
+<?xml version="1.0"?>
+<A>
+  <B fixedAttr="hello">howdy</B>
+  <D>hey</D>
+</A>
\ No newline at end of file

Added: xerces/java/trunk/tests/schema/config/idIdref.xml
URL: http://svn.apache.org/viewcvs/xerces/java/trunk/tests/schema/config/idIdref.xml?rev=371982&view=auto
==============================================================================
--- xerces/java/trunk/tests/schema/config/idIdref.xml (added)
+++ xerces/java/trunk/tests/schema/config/idIdref.xml Tue Jan 24 11:07:20 2006
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<A xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+   <A xsi:type="idType" idAttr="ONE"/>
+   <A xsi:type="idType" idAttr="ONE"/>
+   <A xsi:type="idrefType" idrefAttr="TWO"/>
+</A>
\ No newline at end of file

Added: xerces/java/trunk/tests/schema/config/idc.xml
URL: http://svn.apache.org/viewcvs/xerces/java/trunk/tests/schema/config/idc.xml?rev=371982&view=auto
==============================================================================
--- xerces/java/trunk/tests/schema/config/idc.xml (added)
+++ xerces/java/trunk/tests/schema/config/idc.xml Tue Jan 24 11:07:20 2006
@@ -0,0 +1,7 @@
+<?xml version="1.0"?>
+<itemList>
+   <item uniqueAttr="ONE">1</item>
+   <item uniqueAttr="ONE">2</item>
+   <item uniqueAttr="TWO">2</item>
+   <itemRef>3</itemRef>
+</itemList>
\ No newline at end of file

Added: xerces/java/trunk/tests/schema/config/idc.xsd
URL: http://svn.apache.org/viewcvs/xerces/java/trunk/tests/schema/config/idc.xsd?rev=371982&view=auto
==============================================================================
--- xerces/java/trunk/tests/schema/config/idc.xsd (added)
+++ xerces/java/trunk/tests/schema/config/idc.xsd Tue Jan 24 11:07:20 2006
@@ -0,0 +1,41 @@
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+  <xsd:element name="itemList" type="itemListType">
+    <xsd:unique name="itemAttr">
+      <xsd:selector xpath="item"/>
+      <xsd:field    xpath="@uniqueAttr"/>
+    </xsd:unique>
+
+    <xsd:key name="itemValueKey">
+      <xsd:selector xpath="item"/>
+      <xsd:field    xpath="."/>
+    </xsd:key>
+
+    <xsd:keyref name="itemKeyRef" refer="itemValueKey">
+      <xsd:selector xpath="itemRef"/>
+      <xsd:field    xpath="."/>
+    </xsd:keyref>
+  </xsd:element>
+  
+  <xsd:element name="item" type="itemType"/>
+
+  <xsd:attribute name="uniqueAttr" type="xsd:string"/>
+
+  <xsd:attribute name="unparsedEntityAttr" type="xsd:ENTITIES"/>
+
+  <xsd:complexType name="itemListType">
+    <xsd:sequence>
+      <xsd:element ref="item" maxOccurs="unbounded"/>
+      <xsd:element name="itemRef" type="xsd:string" maxOccurs="unbounded"/>
+    </xsd:sequence>
+  </xsd:complexType>
+
+  <xsd:complexType name="itemType">
+    <xsd:simpleContent>
+      <xsd:extension base="xsd:string">
+        <xsd:attribute ref="uniqueAttr" use="required"/>
+      </xsd:extension>
+    </xsd:simpleContent>
+  </xsd:complexType>
+
+</xsd:schema>
\ No newline at end of file

Added: xerces/java/trunk/tests/schema/config/otherNamespace.xml
URL: http://svn.apache.org/viewcvs/xerces/java/trunk/tests/schema/config/otherNamespace.xml?rev=371982&view=auto
==============================================================================
--- xerces/java/trunk/tests/schema/config/otherNamespace.xml (added)
+++ xerces/java/trunk/tests/schema/config/otherNamespace.xml Tue Jan 24 11:07:20 2006
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<unit:A xmlns:unit="xslt.unittests"
+        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+        xsi:schemaLocation="xslt.unittests otherNamespace.xsd"
+        attr="typeX">
+</unit:A>
\ No newline at end of file

Added: xerces/java/trunk/tests/schema/config/otherNamespace.xsd
URL: http://svn.apache.org/viewcvs/xerces/java/trunk/tests/schema/config/otherNamespace.xsd?rev=371982&view=auto
==============================================================================
--- xerces/java/trunk/tests/schema/config/otherNamespace.xsd (added)
+++ xerces/java/trunk/tests/schema/config/otherNamespace.xsd Tue Jan 24 11:07:20 2006
@@ -0,0 +1,18 @@
+<xsd:schema
+  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+  xmlns:unit="xslt.unittests"
+  targetNamespace="xslt.unittests">
+  
+  <xsd:import schemaLocation="base.xsd"/>
+  
+  <xsd:element name="A" type="unit:W"/>
+  
+  <xsd:complexType name="W">
+    <xsd:sequence>
+      <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+    </xsd:sequence>
+    <xsd:attribute ref="attr"/>
+    <xsd:attribute ref="unparsedEntityAttr"/>
+  </xsd:complexType>
+
+</xsd:schema>
\ No newline at end of file

Added: xerces/java/trunk/tests/schema/config/unparsedEntity.dtd
URL: http://svn.apache.org/viewcvs/xerces/java/trunk/tests/schema/config/unparsedEntity.dtd?rev=371982&view=auto
==============================================================================
--- xerces/java/trunk/tests/schema/config/unparsedEntity.dtd (added)
+++ xerces/java/trunk/tests/schema/config/unparsedEntity.dtd Tue Jan 24 11:07:20 2006
@@ -0,0 +1,2 @@
+<!NOTATION myNotation SYSTEM "somethingElse" >
+<!ENTITY myUnparsedEntity SYSTEM "something" NDATA myNotation >
\ No newline at end of file

Added: xerces/java/trunk/tests/schema/config/unparsedEntity.xml
URL: http://svn.apache.org/viewcvs/xerces/java/trunk/tests/schema/config/unparsedEntity.xml?rev=371982&view=auto
==============================================================================
--- xerces/java/trunk/tests/schema/config/unparsedEntity.xml (added)
+++ xerces/java/trunk/tests/schema/config/unparsedEntity.xml Tue Jan 24 11:07:20 2006
@@ -0,0 +1,4 @@
+<?xml version="1.0"?>
+<!DOCTYPE personnel SYSTEM "unparsedEntity.dtd">
+<A attr="blah" unparsedEntityAttr="myUnparsedEntity">
+</A>
\ No newline at end of file

Added: xerces/java/trunk/tests/schema/config/xsitype_A_A.xml
URL: http://svn.apache.org/viewcvs/xerces/java/trunk/tests/schema/config/xsitype_A_A.xml?rev=371982&view=auto
==============================================================================
--- xerces/java/trunk/tests/schema/config/xsitype_A_A.xml (added)
+++ xerces/java/trunk/tests/schema/config/xsitype_A_A.xml Tue Jan 24 11:07:20 2006
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<A attr="typeY"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:type="Y">
+   <A attr="typeY" xsi:type="Y"/>
+</A>
\ No newline at end of file

Added: xerces/java/trunk/tests/schema/config/xsitype_A_C.xml
URL: http://svn.apache.org/viewcvs/xerces/java/trunk/tests/schema/config/xsitype_A_C.xml?rev=371982&view=auto
==============================================================================
--- xerces/java/trunk/tests/schema/config/xsitype_A_C.xml (added)
+++ xerces/java/trunk/tests/schema/config/xsitype_A_C.xml Tue Jan 24 11:07:20 2006
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<A attr="typeY"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:type="Y">
+   <C attr="typeY" xsi:type="Y"/>
+</A>
\ No newline at end of file

Added: xerces/java/trunk/tests/schema/config/xsitype_C_A.xml
URL: http://svn.apache.org/viewcvs/xerces/java/trunk/tests/schema/config/xsitype_C_A.xml?rev=371982&view=auto
==============================================================================
--- xerces/java/trunk/tests/schema/config/xsitype_C_A.xml (added)
+++ xerces/java/trunk/tests/schema/config/xsitype_C_A.xml Tue Jan 24 11:07:20 2006
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<C attr="typeY"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:type="Y">
+   <A attr="typeY" xsi:type="Y"/>
+</C>
\ No newline at end of file

Added: xerces/java/trunk/tests/schema/config/xsitype_C_AC.xml
URL: http://svn.apache.org/viewcvs/xerces/java/trunk/tests/schema/config/xsitype_C_AC.xml?rev=371982&view=auto
==============================================================================
--- xerces/java/trunk/tests/schema/config/xsitype_C_AC.xml (added)
+++ xerces/java/trunk/tests/schema/config/xsitype_C_AC.xml Tue Jan 24 11:07:20 2006
@@ -0,0 +1,7 @@
+<?xml version="1.0"?>
+<C attr="typeY"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:type="Y">
+   <A attr="typeY" xsi:type="Y"/>
+   <C attr="typeY" xsi:type="Y"/>
+</C>
\ No newline at end of file

Added: xerces/java/trunk/tests/schema/config/xsitype_C_C.xml
URL: http://svn.apache.org/viewcvs/xerces/java/trunk/tests/schema/config/xsitype_C_C.xml?rev=371982&view=auto
==============================================================================
--- xerces/java/trunk/tests/schema/config/xsitype_C_C.xml (added)
+++ xerces/java/trunk/tests/schema/config/xsitype_C_C.xml Tue Jan 24 11:07:20 2006
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<C attr="typeY"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:type="Y">
+   <C attr="typeY" xsi:type="Y"/>
+</C>
\ No newline at end of file

Added: xerces/java/trunk/tests/schema/config/xsitype_C_CA.xml
URL: http://svn.apache.org/viewcvs/xerces/java/trunk/tests/schema/config/xsitype_C_CA.xml?rev=371982&view=auto
==============================================================================
--- xerces/java/trunk/tests/schema/config/xsitype_C_CA.xml (added)
+++ xerces/java/trunk/tests/schema/config/xsitype_C_CA.xml Tue Jan 24 11:07:20 2006
@@ -0,0 +1,7 @@
+<?xml version="1.0"?>
+<C attr="typeY"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:type="Y">
+   <C attr="typeY" xsi:type="Y"/>
+   <A attr="typeY" xsi:type="Y"/>
+</C>
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org