You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Kurt Huwig (JIRA)" <xe...@xml.apache.org> on 2007/08/22 10:06:30 UTC

[jira] Commented: (XERCESJ-1004) resolving ref="xs:schema"

    [ https://issues.apache.org/jira/browse/XERCESJ-1004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12521729 ] 

Kurt Huwig commented on XERCESJ-1004:
-------------------------------------

This is still an issue with WSDLs generated by Microsoft products. I collect information here:

http://forums.java.net/jive/thread.jspa?messageID=231954

A fix might be to ignore the

<s:element ref="s:schema" />

A workaround is to remove these lines from the WSDL file.

> resolving ref="xs:schema"
> -------------------------
>
>                 Key: XERCESJ-1004
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1004
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: XML Schema Structures
>    Affects 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.
-
You can reply to this email to add a comment to the issue online.


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