Martin Holmes wrote:
> <rng:group xmlns:rng="http://relaxng.org/ns/structure/1.0">
> <rng:ref name="appDetail" />
> <rng:ref name="note" />
> <rng:ref xmlns:rng="http://relaxng.org/ns/structure/1.0"
> <egXML xmlns="http://www.tei-c.org/ns/Examples">[snip...]</egXML>
> Do I have the attribute specified correctly here? I want to specify
> that the standard xml:id attribute is required on this element.
no. You are are not using the power of ODD :-}
the xml:id is available on every element regardless. you don't have to
indicate it. to make it
compulsory, remove the <attribute> there, and put in after </content>:
<attDef ident="xml:id" usage="req" mode="change"/>
this takes the provided xml:id attribute, and modifies it.
> When I come to the appDetail tag, it gets a bit harder. I want to
> specify co-occurrence constraints, such that:
that's really not possible as this stands. you would have
to write some Schematron rules to enforce these constraints.
Are you familiar with how to do that? Here is an example
<s:report test="* and @key">
child elements of moduleRef are only allowed when an external
is being loaded
this is fairly virgin territory for most people, I think, and the TEI
has not made serious use of it yet.
May I say what a pleasure it is to see someone joining the ever-growing band
of ODD cognoscenti?
Information Manager, Oxford University Computing Services
13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431
OSS Watch: JISC Open Source Advisory Service