[tei-council] multi-valued closed lists

Sebastian Rahtz sebastian.rahtz at oucs.ox.ac.uk
Thu May 14 16:07:20 EDT 2009


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?
-- 
Sebastian Rahtz
Information Manager, Oxford University Computing Services
13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431

Sólo le pido a Dios
que el futuro no me sea indiferente


More information about the tei-council mailing list