xmlbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject svn commit: r125456 - /xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeSystemImpl.java
Date Tue, 18 Jan 2005 01:17:56 GMT
Author: radup
Date: Mon Jan 17 17:17:53 2005
New Revision: 125456

URL: http://svn.apache.org/viewcvs?view=rev&rev=125456
Log:
Fixed http://issues.apache.org/jira/browse/XMLBEANS-23

Modified:
   xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeSystemImpl.java

Modified: xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeSystemImpl.java
Url: http://svn.apache.org/viewcvs/xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeSystemImpl.java?view=diff&rev=125456&p1=xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeSystemImpl.java&r1=125455&p2=xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeSystemImpl.java&r2=125456
==============================================================================
--- xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeSystemImpl.java
(original)
+++ xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeSystemImpl.java
Mon Jan 17 17:17:53 2005
@@ -1943,6 +1943,8 @@
                     return _linker.findAttribute(QNameHelper.forPretty(handle, 4)).getType().getRef();
                 case 'S': // _XS_ - external ref to element's type
                     return _linker.findElement(QNameHelper.forPretty(handle, 4)).getType().getRef();
+                case 'O': // _XO_ - external ref to document type
+                    return _linker.findDocumentTypeRef(QNameHelper.forPretty(handle, 4));
                 default:
                     throw new SchemaTypeLoaderException("Cannot resolve handle " + handle,
_name, _handle, SchemaTypeLoaderException.BAD_HANDLE);
             }
@@ -1989,6 +1991,13 @@
                     if (type.getName() != null)
                     {
                         writeString("_XT_" + QNameHelper.pretty(type.getName()));
+                    }
+                    else if (type.isDocumentType())
+                    {
+                        // Substitution groups will create document types that
+                        // extend from other document types, possibly in
+                        // different jars
+                        writeString("_XO_" + QNameHelper.pretty(type.getDocumentElementName()));
                     }
                     else
                     {

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


Mime
View raw message