Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: deriving mixed content types

From: ht@---.--.--.-- (----- -. --------)
To: jbekaert@----.---
Date: 3/16/2005 9:35:00 AM
"jeroen bekaert" <jbekaert@l...> writes:

> Derivation by extension can be used to append new content after the
> content of the base type; however - if not mistaken - the structure of the
> base type must be kept unchanged. As such, it is not possible to derive a
> mixed content model from an element-only content model (and vice versa).

Correct.

> The content type of the base type definition of SCHEMA 1 below is empty.
> Is it correct to derive (by extension) a content type 'mixed' of a base
> type definition with an empty content type?

Yes.

> Can someone point me to the clause of the W3C XML Schema spec
> confirming/forbidding the below extension constructs?

>From Schema Component Constraint: Derivation Valid (Extension) [1]

  1.4.3 All of the following must be true:
    1.4.3.1 The {content type} of the complex type definition itself
            must specify a particle.
    1.4.3.2 One of the following must be true:
      1.4.3.2.1 The {content type} of the {base type definition} must
                be _empty_.
      1.4.3.2.2 All of the following must be true:
        1.4.3.2.2.1 Both {content type}s must be _mixed_ or both must be
                    _element-only_.
        . . .

Hope this helps,

ht

[1] http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/structures.html#cos-ct-extends
-- 
 Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                     Half-time member of W3C Team
    2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
            Fax: (44) 131 650-4587, e-mail: ht@i...
                   URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]

From K.Buchcik@4... Wed Mar 16 10:14:05 2005
Received: from lisa.w3.org 


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent