This message was originally submitted by Thomas1.Schreiner_at_AUDI.DE to the
JAXB-INTEREST list at JAVA.SUN.COM. If you simply forward it back to the list,
using a mail command that generates "Resent-" fields (ask your local user
support or consult the documentation of your mail program if in doubt), it will
be distributed and the explanations you are now reading will be removed
automatically. If on the other hand you edit the contributions you receive into
a digest, you will have to remove this paragraph manually. Finally, you should
be able to contact the author of this message by using the normal "reply"
function of your mail program.
----------------- Message requiring your approval (33 lines) ------------------
> Hello,
>
> I was playing around with the jaxb tool, to generate out of a DTD a class
> schema.
> I looked also into the specification and documentation about what is not
> bind able by jaxb out of the XML DTD/Schema, but I never get any note or
> hint, that recursion in the DTD is not allowed.
> We try to build a XML DTD for documents which contains chapters and text
> blocks. So a chapter is divided into two sub elements, one for the
> metadata and the other for the content. In the content sub element we are
> referencing back to the chapter element. In other word we try to reuse the
> chapter element for subchapters without having any limit in the depth of
> the chapter levels.
>
> Is such a DTD parse and bind able by jaxb? If not, the workaround will be
> to restrict the subchapter levels to a number, e.g. 9 and build for every
> chapter level a single element.
>
> Best regards
>
> Thomas Schreiner
> IS Produktdatenmanagement
>
> AUDI AG
> I/FP-25
> 85045 Ingolstadt
> GVZ H/203
> Tel.: +49 (0)8 41 89-4 30 58
> Fax.:+49 (0)8 41 89-84 4 30 58
> mailto:thomas1.schreiner_at_audi.de
> http://www.audi.com
>
>