[ http://issues.apache.org/jira/browse/XERCESJ-1004?page=history ]
     
Ankit Pasricha closed XERCESJ-1004:
-----------------------------------

    Resolution: Cannot Reproduce

> resolving ref="xs:schema"
> -------------------------
>
>          Key: XERCESJ-1004
>          URL: http://issues.apache.org/jira/browse/XERCESJ-1004
>      Project: Xerces2-J
>         Type: Bug
>   Components: XML Schema Structures
>     Versions: 2.6.2
>  Environment: windows xp, sun jdk 1.4.02
>     Reporter: Muruga Chinnananchi

>
> I am trying to create XSModel using the following schema (foo.xsd). I get 
> this error:
> [Error] foo.xsd:12:47: src-resolve: Cannot resolve the name 's:schema' to a(n)
>  'element declaration' component.
> Looks like <s:element ref="s:schema" /> doesn't work. but this seems to be a 
> valid schema because the <schema> element is defined in 
> http://www.w3.org/2001/XMLSchema namespace which is imported.
> foo.xsd:
> ========
> <s:schema elementFormDefault="qualified" 
> targetNamespace="http://www.enterrasolutions.com/octave"; 
> xmlns:s="http://www.w3.org/2001/XMLSchema";>
>       <s:import namespace="http://www.w3.org/2001/XMLSchema"; />
>       <s:element name="GetDefinitions">
>         <s:complexType />
>       </s:element>
>       <s:element name="GetDefinitionsResponse">
>         <s:complexType>
>           <s:sequence>
>             <s:element minOccurs="0" maxOccurs="1" 
> name="GetDefinitionsResult">
>               <s:complexType>
>                 <s:sequence>
>                   <s:element ref="s:schema" />
>                   <s:any />
>                 </s:sequence>
>               </s:complexType>
>             </s:element>
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>     </s:schema>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to