类型 base64Binary 未声明或不是简单类型

Type base64Binary is not declared or is not a simple type

我遇到这个错误,不知道如何解决。

<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"  
           xmlns:ds="http://www.w3.org/2000/09/xmldsig#" 
           attributeFormDefault="unqualified" elementFormDefault="qualified">
      <xs:import namespace="http://www.w3.org/2000/09/xmldsig#" 
                 schemaLocation="xmldsig-core-schema.xsd">
        <xs:annotation>
          <xs:documentation>XML Digital Signature schema imported to support 
                            signatures of messages and contents.</xs:documentation>
        </xs:annotation>
      </xs:import>
      ....
      <xs:simpleType name="APP_base64" >
         <xs:annotation>
          <xs:documentation>Representación base64 de la imagen </xs:documentation>
         </xs:annotation>
         <xs:restriction base="base64Binary"/>
      </xs:simpleType>

这一行给出警告<xs:restriction base="base64Binary"/>

改变

<xs:restriction base="base64Binary"/>

<xs:restriction base="xs:base64Binary"/>