-
Notifications
You must be signed in to change notification settings - Fork 2
PLODD features for testing the transpiler
Martin Holmes edited this page May 22, 2024
·
6 revisions
Most of the content models below need to be expressed with various combinations of @minOccurs and @maxOccurs (e.g.: unspecified, min=0 max=1, min=0 max=3, min=0 max=unbounded, min=1 max=1, min=1 max=3, min=1 max=unbounded, min=3 max=3, min=3 max=unbounded).
-
<elementSpec>
with empty content -
<elementSpec>
with content a<sequence>
of<elementRef>
s -
<elementSpec>
with content an<alternate>
of<elementRef>
s -
<elementSpec>
with content a<sequence>
of<alternate>
s of<elementRef>
s -
<elementSpec>
with content an<alternate>
of<sequences>
s of<elementRef>
s -
<elementSpec>
s with an<altIdent>
, an @ns, and both - (2)–(5) with
<classRef>
s instead of<elementRef>
s - (2)–(5) with
<macroRef>
s instead of<elementRef>
s - (2)–(5) with combinations of
<elementRef>
,<classRef>
, and<macroRef>
-
(* Should not be necessary because should not contain<classSpec>
with (1)–(9)<content>
*) -
<macroSpec>
with (1)–(9) and<textNode>
-
<elementSpec>
with child<altIdent>
,<gloss>
,<desc>
in various combinations -
<elementSpec>
membership in a model class -
<elementSpec>
membership in a model class that is itself is a member of a model class -
<elementSpec>
membership in an attribute class -
<elementSpec>
membership in an attribute class that is itself a member of an attribute class -
<attList>
(both choice and regular) with child<attDef>
s -
<attList>
(both choice and regular) with child<attList>
s (both choice and regular) -
<attDef>
with various different<datatype>
s (20–23 could be wrapped into tests for 18 & 19) -
<attDef>
with various different<datatype>
s and a<valList>
(closed, semi, and open) -
<attDef>
with<altIdent>
-
<attDef>
with @ns - NOTE: We think this should only happen at the derivation stage, so not relevant here:
<attDef>
s that over-ride various parts (datatype, required, value list,<altIdent>
) of a definition inherited from a class -
<valItem>
with<altIdent>
-
<constraintSpec>
s both with and without<sch:rule>
. (Question from MDH: are constraintSpecs unchanged from source to PLODD? — SB: Good question. At the moment, I think so (although no constraintSpec with @mode survives to a PLODD, those that survive are unchanged, I think). That said, should probably also drop those that are not scheme="schematron", and no need to keep any children other than<constraint>
, right?) - classRef w/o @expand
- classRef w/ @expand = alternation, sequence, sequenceOptional, sequenceOptionalRepeatable, sequenceRepeatable
- classRef to a base model class (i.e. inheriting members) w/o @expand
- classRef to a base model class (i.e. inheriting members) w/ @expand = alternation, sequence, sequenceOptional, sequenceOptionalRepeatable, sequenceRepeatable
- schemaSpec with a namespace and all its elements non-tei.