[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    RE: inheriting from an existing schema creates empty .java files
From:       "Radu Preotiuc-Pietro" <radup () bea ! com>
Date:       2006-01-02 23:34:43
Message-ID: 99479F4D39C9244F8E17E688193A3DD805D799 () repbex02 ! amer ! bea ! com
[Download RAW message or body]

That's strange, I am not seeing this. I have tried the Schema you
provide using a stub .xsd for the "auth" namespace and I get the
expected results: only two generated files in the output directory
(ActiveDirectoryAuthentication.java and
ActiveDirectoryAuthenticationDocument.java) each of them containing the
methods corresponding to their respective properties.

Empty Java files (size 0 bytes) doesn't sound right, are you sure it's
not some kind of I/O error involved? Also, when you say "despite it
already existing in the classpath" what exactly is the set-up?

Radu

-----Original Message-----
From: Marius Gleeson [mailto:mg@subscribe.audumla.net] 
Sent: Thursday, December 22, 2005 3:16 PM
To: xmlbeans-dev@xml.apache.org
Subject: inheriting from an existing schema creates empty .java files


I have the following schema 

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:ad="http://str.com.au/superadmin/authentication/activedirectory/sc
hema"
targetNamespace="http://str.com.au/superadmin/authentication/activedirec
tory/schema"
elementFormDefault="qualified"
xmlns:auth="http://str.com.au/superadmin/authentication/schema"
blockDefault="substitution" version="2.0">
    <xs:import
    namespace="http://str.com.au/superadmin/authentication/schema" />
    <xs:complexType name="ActiveDirectoryAuthentication">
		<xs:complexContent>
			<xs:extension base="auth:LdapAuthentication">
				<xs:attribute name="domain"
default="localhost" type="xs:string"/>
			</xs:extension>
		</xs:complexContent>
	</xs:complexType>
	<xs:element name="activeDirectoryAuthentication"
type="ad:ActiveDirectoryAuthentication"
substitutionGroup="auth:service"/>
</xs:schema>

The "http://str.com.au/superadmin/authentication/schema" namespace has
been defined and compiled in another module. When I run the build over
this ( I am keeping the generated java files ), xmlbeans generates empty
java for ActiveDirectoryAuthentication and
ActiveDirectoryAuthenticationDocument and empty java documents for their
implementation. It also creates all the java source for the imported
namespace depsite it already existing in the classpath. Any ideas?
Thanks Marius Gleeson

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


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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic