EMF barfs not being able to processes the schema without me putting in
the imports. During the command line build of the eclipse plugin, I'm
launching a headless eclipse to launch emf code generation feeding it
the schemas to generate the model. If this fix shouldn't go into
geronimo, do you think it would invalidate any generated model if I
locally patch it as a workaround? Ed Merks the person responding to that
newsgroup thread is actually one of the EMF leads so I'll shoot off a
note to him so see why EMF is having issues.
Sachin
Jeff Genender wrote:
I don't think you want to import this...the 1998 schema is supposed to
be redirected to the 2001 version. It should already be imported from
the reference to http://www.w3.org/2001/XMLSchema at he top.
Are you having problems building from the command liine or from within
Eclipse.
Apparently there seems to be an issue in Eclipse with the subversion
plugin that causes. I have not looked heavily into this issue...it
can be found here:
http://www.eclipse.org/newsportal/article.php?id=1390&group=eclipse.technology.xsd
Jeff
Sachin Patel wrote:
Yes, I see this validation error as well. There is a similar error
also with geronimo-security-1.0.xsd. There is already an existing
jira opened for this. In the tools, this problem prevents EMF code
generation from completing and as a workaround I patch the schema
prior to codegen by including the following import for
geronimo-connector-1.0.xsd.
<xs:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="xml.xsd"/>
Brian Bonner wrote:
I'm getting an error in the geronimo-connector-1.0.xsd, but I'm not
sure if it's because of Eclipse's WTP or something else.
here's the error:
src-resolve.4.2: Error resolving component 'xml:lang'. It was detected
that 'xml:lang' is in namespace
'http://www.w3.org/XML/1998/namespace', but components from this
namespace are not referenceable from schema document
'file:///C:/workspace_paraware/testschema/schema/geronimo-connector-1.0.xsd'.
If this is the incorrect namespace, perhaps the prefix of 'xml:lang'
needs to be changed. If this is the correct namespace, then an
appropriate 'import' tag should be added to
'file:///C:/workspace_paraware/testschema/schema/geronimo-connector-1.0.xsd'.
it's occurring in line 391:
<xs:complexType name="descriptionType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute ref="xml:lang"/> <!-- right here -->
</xs:extension>
</xs:simpleContent>
</xs:complexType>
Is anyone else seeing this?
Brian
- Re: error in geronimo-connector-1.0.xsd Sachin Patel
-