Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions schema/pretext-dev.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -469,14 +469,20 @@
attribute number {text}?,
StatementExercise,
Feedback?,
Matches,
Hint*, Answer*, Solution*
Matches = (
element matches {
Match+
},
Hint*, Answer*, Solution*
} |
element cardsort {
Match+
})
Match =
element match {
attribute order {xsd:integer}?,
element premise {
attribute order {xsd:integer}?,
mixed {BlockText?}
},
element response {
Expand Down
25 changes: 20 additions & 5 deletions schema/pretext-dev.rng
Original file line number Diff line number Diff line change
Expand Up @@ -1281,11 +1281,7 @@
<optional>
<ref name="Feedback"/>
</optional>
<element name="matches">
<oneOrMore>
<ref name="Match"/>
</oneOrMore>
</element>
<ref name="Matches"/>
<zeroOrMore>
<ref name="Hint"/>
</zeroOrMore>
Expand All @@ -1296,6 +1292,20 @@
<ref name="Solution"/>
</zeroOrMore>
</define>
<define name="Matches">
<choice>
<element name="matches">
<oneOrMore>
<ref name="Match"/>
</oneOrMore>
</element>
<element name="cardsort">
<oneOrMore>
<ref name="Match"/>
</oneOrMore>
</element>
</choice>
</define>
<define name="Match">
<element name="match">
<optional>
Expand All @@ -1304,6 +1314,11 @@
</attribute>
</optional>
<element name="premise">
<optional>
<attribute name="order">
<data type="integer"/>
</attribute>
</optional>
<mixed>
<optional>
<ref name="BlockText"/>
Expand Down
10 changes: 8 additions & 2 deletions schema/pretext.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2424,14 +2424,20 @@
attribute number {text}?,
StatementExercise,
Feedback?,
Matches,
Hint*, Answer*, Solution*
Matches = (
element matches {
Match+
},
Hint*, Answer*, Solution*
} |
element cardsort {
Match+
})
Match =
element match {
attribute order {xsd:integer}?,
element premise {
attribute order {xsd:integer}?,
mixed {BlockText?}
},
element response {
Expand Down