[tei-council] multi-valued closed lists

David Sewell dsewell at virginia.edu
Thu May 14 16:48:33 EDT 2009


If <valList> is allowed to carry @maxOccurs and @minOccurs, what happens
in the case where <datatype> has them also (especially if the values
conflict)? The status quo seems more safe, unless you want to rely on
Schematron checking to avoid that kind of problem.

On Thu, 14 May 2009, Sebastian Rahtz wrote:

> I want to be able to say
>
>   <ptr rend="rss rssnoimage"/>
>
> and have the values checked by the schema.
>
> I ended up writing this:
>
> <attDef ident="rend" mode="change">
> 	      <datatype maxOccurs="3"/>
> 	      <valList type="closed" mode="add">
> 		<valItem ident="rss"/>
> 		<valItem ident="rssnoimage"/>
> 		<valItem ident="rssimage"/>
> 		<valItem ident="rssbrief"/>
> 	      </valList>
> 	    </attDef>
>
> note the <datatype> in parallel with the <valList>.
>
> Does this make sense? should <valList> in
> fact support maxOccurs and minOccurs as well?
>

-- 
David Sewell, Editorial and Technical Manager
ROTUNDA, The University of Virginia Press
PO Box 801079, Charlottesville, VA 22904-4318 USA
Courier: 310 Old Ivy Way, Suite 302, Charlottesville VA 22903
Email: dsewell at virginia.edu   Tel: +1 434 924 9973
Web: http://rotunda.upress.virginia.edu/


More information about the tei-council mailing list