[tei-council] content model of <surface>

Lou Burnard lou.burnard at retired.ox.ac.uk
Wed May 9 05:15:39 EDT 2012


On 09/05/12 10:09, Sebastian Rahtz wrote:
>
> On 9 May 2012, at 10:01, Lou Burnard wrote:
>
>> On 09/05/12 09:55, Sebastian Rahtz wrote:
>>>
>>> I suppose someone does know why we want<surface>   to allow children of (eg)<pb/>?
>>>
>>
>> Cf earlier discussion about<signed>
>>
>> Could remove model.global as top level content of<surface>  I suppose.
>> This would mean you'd need to define at least one zone.
>
> I am thinking of shifting to this:
>
>    <content>
>      <group xmlns="http://relaxng.org/ns/structure/1.0">
>        <zeroOrMore>
>          <ref name="model.glossLike"/>
>        </zeroOrMore>
>        <zeroOrMore>
>          <ref name="model.graphicLike"/>
>        </zeroOrMore>
>        <zeroOrMore>
> 	<group>
> 	<choice>
> 	<ref name="zone"/>
> 	<ref name="line"/>
> 	<ref name="surface"/>
> 	<ref name="surfaceGrp"/>
> 	</choice>
> 	</group>
> 	<zeroOrMore>
> 	<ref name="model.global"/>
> 	</zeroOrMore>
>        </zeroOrMore>
>      </group>
>    </content>
>
>
>
>

Looks still non deterministic to me. If you have 
<surface><lb/></surface> which bit of the model is being matched?

b


More information about the tei-council mailing list