logo       

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

text.xml.xerces-j.devel

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

The following comment has been added to this issue:

Author: Michael Glavassevich
Created: Tue, 31 Aug 2004 1:57 PM
Body:
Have you tried copying the schema at: http://www.w3.org/2001/XMLSchema.xsd to a
local file and specifying that instead as the schemaLocation? Perhaps you're
having connection problems (see this FAQ [1]).

[1] http://xml.apache.org/xerces2-j/faq-general.html#faq-9
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/XERCESJ-1004?page=comments#action_37979

---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XERCESJ-1004

Here is an overview of the issue:
---------------------------------------------------------------------
Key: XERCESJ-1004
Summary: resolving ref="xs:schema"
Type: Bug

Status: Unassigned
Priority: Major

Project: Xerces2-J
Components:
XML Schema Structures
Versions:
2.6.2

Assignee:
Reporter: Muruga Chinnananchi

Created: Mon, 30 Aug 2004 10:19 AM
Updated: Tue, 31 Aug 2004 1:57 PM
Environment: windows xp, sun jdk 1.4.02

Description:
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>


---------------------------------------------------------------------
JIRA INFORMATION:
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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise