[tei-council] allowText contd

Lou Burnard lou.burnard at retired.ox.ac.uk
Sun Jun 8 08:53:49 EDT 2014


On the assumption that everyone is interested in pureODD, I continue 
with some more observations on the impact of allowing text :

<content>
<classRef key="model.foo" maxOccurs="unlimited"/>
</content>

is the natural way of saying in pure ODD that you want any number of 
model.foo elements gt 1

Now suppose however that you want to allow text children as well. You 
might think that

<content allowText="true">
<classRef key="model.foo" maxOccurs="unlimited"/>
</content>

would do it.  But no. In fact this generates exactly the same RNG as the 
previous one. What you need is:

<content allowText="true">
<classRef key="model.foo" >
</content>

Which does produce the correct content model

  (text | model.foo)*


Read and discuss.





More information about the tei-council mailing list