OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] Can mixed content be constrained?

I imagine that would only be possible with assertions in XML Schema 1.1.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com

E-mail: mrglavas@apache.org

"Costello, Roger L." <costello@mitre.org> wrote on 03/23/2010 12:56:14 PM:

> Hi Folks,

> Mixed content permits strings to be interspersed with elements. For
> example, this <Body> element has mixed content:

> <Body>
>     Dear Sirs:
>          This is to inform you that we <emp>really</emp>
>          like your product.
> </Body>
> It is declared in XML Schemas like this:
> <element name="Body">
>     <complexType mixed="true">
>         <element name="emp" minOccurs="0" maxOccurs="unbounded" type="..." />
>     </complexType>
> </element>
> Can the string portion (e.g., Dears Sirs: This is to ...) of the
> mixed content be constrained? Suppose I want to constrain the string
> portion within <Body> to be less than 200 characters, how would that be done?

> /Roger

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS