S
Simon Brooke
I have a document type which I'm developing and working with, which is
currently defined in a DTD, mainly because I still haven't really
learned to use schemas. In this document type I need to specify that
some specific elements may have children which are XHTML %Flow;
elements. It isn't valid for these elements to contain arbitrary
XHTML, and it isn't valid for other elements in my language to have
any XHTML children.
I presume I can't do this in a DTD (except by including the XHTML DTD
into mine, which would mean that I would end up with the whole of
XHTML in my namespace, which isn't what I want). But how would I go
about doing it in a schema?
currently defined in a DTD, mainly because I still haven't really
learned to use schemas. In this document type I need to specify that
some specific elements may have children which are XHTML %Flow;
elements. It isn't valid for these elements to contain arbitrary
XHTML, and it isn't valid for other elements in my language to have
any XHTML children.
I presume I can't do this in a DTD (except by including the XHTML DTD
into mine, which would mean that I would end up with the whole of
XHTML in my namespace, which isn't what I want). But how would I go
about doing it in a schema?