You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Holger Rieß <ho...@cbs.ag> on 2005/12/16 15:45:25 UTC

scomp problem with complextype and simplecontent

Hi,

using scomp with the following schema part

...
<xsd:complexType name="typeMLSTRING00050">
     <xsd:simpleContent>
         <xsd:restriction base="dtMLSTRING">
             <xsd:maxLength value="50"/>
             <xsd:minLength value="1"/>
         </xsd:restriction>
     </xsd:simpleContent>
</xsd:complexType>
...

I got the error:

bmecat_2005.xsd:3681:5: error: src-ct.1: The specified base type 'typeMLSTRING00050@http://www.bmecat.org/bmecat/2005fd' must be a 
complex type with complex content.

I can't see any problems with that schema. Validation with XMLSpy is o.k.

Thanks
Holger

Re: scomp problem with complextype and simplecontent

Posted by Qi...@equifax.com.




I think it's a scomp bug and we need to report this.
I ran into this problem before, I was lucky enough to be able to change the
schema so
that I don't need to have extension and restriction running in the same
line without losing
much of my business logic. Don't know whether it's possible in your case.

Thanks!
Qian


                                                                           
             Holger Rie�                                                   
             <holger.riess@cbs                                             
             .ag>                                                       To 
                                       user@xmlbeans.apache.org            
             12/16/2005 10:13                                           cc 
             AM                                                            
                                                                   Subject 
                                       Re: scomp problem with complextype  
             Please respond to         and simplecontent                   
             user@xmlbeans.apa                                             
                  che.org                                                  
                                                                           
                                                                           
                                                                           
                                                                           




Hi Qian,

the definition of dtMLSTRING is

<xsd:complexType name="dtMLSTRING">
             <xsd:simpleContent>
                         <xsd:extension base="dtSTRING">
                                     <xsd:attribute name="lang"
type="dtLANG" use="optional"/>
                         </xsd:extension>
             </xsd:simpleContent>
</xsd:complexType>
...
<xsd:simpleType name="dtSTRING">
             <xsd:restriction base="xsd:string"/>
</xsd:simpleType>
...


Thanks
Holger

(See attached file: holger.riess.vcf)
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org




This message contains information from Equifax Inc. which may be
confidential and privileged.  If you are not an intended recipient, please
refrain from any disclosure, copying, distribution or use of this
information and note that such actions are prohibited.  If you have
received this transmission in error, please notify by e-mail
postmaster@equifax.com.

Re: scomp problem with complextype and simplecontent

Posted by Holger Rieß <ho...@cbs.ag>.
Hi Qian,

the definition of dtMLSTRING is

<xsd:complexType name="dtMLSTRING">
	<xsd:simpleContent>
		<xsd:extension base="dtSTRING">
			<xsd:attribute name="lang" type="dtLANG" use="optional"/>
		</xsd:extension>
	</xsd:simpleContent>
</xsd:complexType>
...
<xsd:simpleType name="dtSTRING">
	<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
...


Thanks
Holger


Re: scomp problem with complextype and simplecontent

Posted by Qi...@equifax.com.




What's the type definition for dtMLSTRING? Sometime when you try to
restrict a type which is in turn
an extention of another type, you could run into problem with scomp.

Thanks!
Qian


                                                                           
             Holger Rie�                                                   
             <holger.riess@cbs                                             
             .ag>                                                       To 
                                       user@xmlbeans.apache.org            
             12/16/2005 09:45                                           cc 
             AM                                                            
                                                                   Subject 
                                       scomp problem with complextype and  
             Please respond to         simplecontent                       
             user@xmlbeans.apa                                             
                  che.org                                                  
                                                                           
                                                                           
                                                                           
                                                                           




Hi,

using scomp with the following schema part

...
<xsd:complexType name="typeMLSTRING00050">
     <xsd:simpleContent>
         <xsd:restriction base="dtMLSTRING">
             <xsd:maxLength value="50"/>
             <xsd:minLength value="1"/>
         </xsd:restriction>
     </xsd:simpleContent>
</xsd:complexType>
...

I got the error:

bmecat_2005.xsd:3681:5: error: src-ct.1: The specified base type
'typeMLSTRING00050@http://www.bmecat.org/bmecat/2005fd' must be a
complex type with complex content.

I can't see any problems with that schema. Validation with XMLSpy is o.k.

Thanks
Holger
(See attached file: holger.riess.vcf)
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org




This message contains information from Equifax Inc. which may be
confidential and privileged.  If you are not an intended recipient, please
refrain from any disclosure, copying, distribution or use of this
information and note that such actions are prohibited.  If you have
received this transmission in error, please notify by e-mail
postmaster@equifax.com.