users@jaxb.java.net

Re: object reference in xsd

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Tue, 13 Mar 2007 09:50:37 -0700

Edgar Grimberg wrote:
> Hi,
>
> After half a day of searching and testing, going through xs:key and
> XLINK, I still have this question:
> how do I say, in XSD, that an attribute is a reference to an object
> (with GUID and all the stuff generated in Java)?
> For example, I have an authors and books. The author class has a
> birthday property. How do I keep only a reference to the authors in the
> books class (xml node)?

Your question is really a schema question, not a JAXB question, right?

I try not to answer those questions here. Sorry.


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com