Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Constraining a mixed type ?

From: "Bruno Chatel" <bcha@-------.--->
To: "Michael Kay" <mhk@---.--.-->, <noah_mendelsohn@--.---.--->
Date: 4/19/2004 4:03:00 PM

----- Original Message ----- 
From: "Michael Kay" <mhk@m...>
To: <noah_mendelsohn@u...>
Cc: "'Pierre Attar'" <attar@t...>; "'Bruno Chatel'" <bcha@c...>; <xmlschema-dev@w...>
Sent: Sunday, April 18, 2004 11:21 PM
Subject: RE: Constraining a mixed type ?


> > 
> > > > I wonder if it is possible to define a constrain on a mixed 
> > > > content using XML Schemas. 
> > > 
> > > I don't think this is possible.
> > > 
> > > Michael Kay
> > 
> > Actually, a number of interesting constraints are possible.  
> 
> My interpretation of the original question (I might have interpreted it
> wrongly) was that the poster wanted to constrain the content of the text
> node children of the mixed content node, and it's this that I don't think is
> possible.
> 
> (I have a similar requirement myself: an element in which child text nodes
> are allowed before the first element child but not following it).


Exact. My need is to apply constrainst (such as non empty) on the content
of the mixed content model.

For instance a way to declare that :

<p/>
and
<p><emph/></p>

are not allowed by declaring P using a mixed content model including
a repeteable choice of emph elements (containing only strings).

-- bruno --

> Michael Kay
> 
> 
> 

From claudio@i...  Mon Apr 19 09:48:19 2004
Return-Path: <claudio@i...


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