Arnaud Blandin wrote:
> 
> Hi Emmanuel,
> 
> Thanks for the precision but Castor XML currently implements the
> ID/IDREF mechanism in the marshalling framework.
> 

*currently* is the "key" word here. XML Schema has the notion of keys
(unique, key, keyref) which are currently not supported.

Emmanuel's patch is on the right track for supporting these other types
of identities which will eventually need to be supported.

--Keith



> Arnaud
> > -----Original Message-----
> > From: Emmanuel Bourg [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, November 29, 2002 10:57 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [castor-dev] Should IDResolver.resolve be class aware ?
> >
> > Arnaud Blandin wrote:
> > > 1- As you said the id value has to be unique
> >
> > Not exactly, that depends on your DTD, if you declared your attribute
> as
> > an ID type, it has to be unique but it's not mandatory for all
> > attributes named "id" :
> > http://www.w3.org/TR/REC-xml#sec-attribute-types
> >
> >
> > > 2- For compatibility
> (http://www.w3.org/TR/xmlschema-2/#terminology),
> > > IDREF should only be used as attributes. Thus <a>123</a> is not XML
> 1.0
> > > compatible.
> >
> > Again, it's true only if you consider Castor references and
> indentifiers
> > as XML IDREFs and IDs, but that's not the case. We are working here on
> > unique keys in the SQL sense, that's an identifier to distinguish an
> > instance from the other objects of his class. A ref like <a>123</a>
> can
> > be seen as a foreign key.
> >
> > I could have named my identifiers differently to make more obvious
> that
> > we are not dealing with ids in the XML/HTML sense :
> >
> > <root>
> >    <a id="123"/>
> >    <b ref="123"/>
> >
> >    <c num="456">
> >      <a>123</a>
> >    </c>
> > </root>
> >
> > Emmanuel
> >
> > -----------------------------------------------------------
> > If you wish to unsubscribe from this mailing, send mail to
> > [EMAIL PROTECTED] with a subject of:
> >       unsubscribe castor-dev
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to