- From: Christian Wolfgang Hujer <Christian.Hujer@itcqis.com>
- Date: Wed, 19 Nov 2003 17:48:57 +0100
- To: Robert Koberg <rob@koberg.com>
- Cc: W3C HTML List <www-html@w3.org>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Robert, Am Mittwoch, 19. November 2003 17:19 schrieb Robert Koberg: > On Nov 19, 2003, at 7:45 AM, Christian Wolfgang Hujer wrote: > > Am Mittwoch, 19. November 2003 12:47 schrieb Lachlan Hunt: > >> Actually, what I should have asked previously is: Is there anyway, > >> using an XML Schema, to specify that the content model is to be > >> inherited from its parent element?. > >> ie. No matter where <script> and <noscript> elements occur, we don't > >> want elements inside <noscript> that would not normally be allowed to > >> occur within the parent element. > > > > good question, great hint for enhancements of XML Schema, and, afaik, > > not > > possible with XML Schema :-( > > The content model is to be specified as defined type, inheriting the > > parent > > element's content model is afaik impossible. > > I am jumping in late (just saw the thread), you can use a complexType > to get inheritance. For example: > > [good XML Schema Example] > > Is that what you are talking about? Oh, this may be it, I can't concentrate enough now, so I ask instead of try it myself: Does it mean that if I use <body><noscript></noscript></body>, <noscript/>'s content model is that of <body/>, and if I use <body><p><noscript></noscript></p></body>, <noscript/>'s content model is that of <p/>? Bye - -- ITCQIS GmbH Christian Wolfgang Hujer Geschäftsführender Gesellschafter (Shareholding CEO) Telefon: +49 (0)89 27 37 04 37 Telefax: +49 (0)89 27 37 04 39 E-Mail: Christian.Hujer@itcqis.com WWW: http://www.itcqis.com/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) iD8DBQE/u579zu6h7O/MKZkRAvpyAKCKPAZUVkIQYak4WTWnbjIDSSpTggCfQPZW dkZ8Y0l+wRKc/FaTiM47csg= =Uz2t -----END PGP SIGNATURE-----
Received on Wednesday, 19 November 2003 15:12:28 UTC