[xsd-users] key/keyref, anonymous types in C++/Parser mapping

Boris Kolpackov boris at codesynthesis.com
Fri Sep 9 05:09:31 EDT 2005


Frederic,

badia <badia at mesiog.obspm.fr> writes:

> > You mean the xsd:key/xsd:keyref constructs of XML Schema?
> >
> yes

This is not yet supported by xsd. However we are interested in how
you use it and what kind of mapping would you expect from xsd.

Are you interested in validation only? Would you like information
about xsd:key/xsd:keyref associations appear in the mapping, similar
to what is provided for ID/IDREF?


> We just had a quick look to xsd so far; what looks really convenient is
> that it's event oriented instead of dom-like if I understood well.

There are actually two mappings: C++/Tree and C++/Parser. C++/Tree is
a "conventional" binding for XML Schema which is, as you pointed out,
is DOM-like. C++/Parser is an event oriented, SAX-like mapping.

It is your choice which one two use for any particular type of
application.


> One problem that we encountered is that we had to move out the complex
> types from the element definitions in our schemas, apparently xsd
> complains if the type is defined inside the element, or didn't you have
> this problem ?

You are right, C++/Parser doesn't support anonymous types yet (though
C++/Tree does). We plan to support this by the next release (due end
of the next week or so). Though note that explicitly naming your types
is always cleaner.


> If we keep contact, I will probably ask you some other funny questions
> about xsd ...

No problem. Just one request: could you please send it to the
xsd-users at codesynthesis.com mailing list instead of to me directly;
this way other can benefit from our discussions.


hth,
-boris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: Digital signature
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20050909/61ddf8fa/attachment.pgp


More information about the xsd-users mailing list