Skip to content

Commit

Permalink
Still NOT ready to be merged into dev:
Browse files Browse the repository at this point in the history
In this commit I intended to comment out some debugging code (which renders output kinda useless, is it sticks the results of each pass into the output as RELAXNG <div> elements, rather than as comments) and update some tests. But I found to my horror that (despite message of previous 3 commits) tests were not passing. So lots of test updates, too. NB: One of the things that makes this ineligible for merging into dev is that the constraint for the <choice> element has changed from the incorrect, but workable '( model.choicePart | choice )+' to the incorrect and *not* workable '( model.choicePart | choice )+'. At the moment I have no idea why, but it does not really matter, as attacking minOccurs= and maxOccurs= on <alternate> and <sequence> is next.
  • Loading branch information
sydb committed Oct 8, 2023
1 parent a5d1c3c commit f280564
Show file tree
Hide file tree
Showing 13 changed files with 1,340 additions and 464 deletions.
274 changes: 136 additions & 138 deletions Test/expected-results/test.rng

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Test/expected-results/test15.odd.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -2380,7 +2380,7 @@ choice =

## (choice) groups a number of alternative encodings for the same point in a text. [3.5. Simple Editorial Changes]
element choice {
(model.choicePart | choice)+, att.global.attributes, empty
(model.choicePart | choice), att.global.attributes, empty
}
reg =

Expand Down
2 changes: 1 addition & 1 deletion Test/expected-results/test21.odd.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -2916,7 +2916,7 @@ choice =

## (choix) regroupe un certain nombre de balisages alternatifs possibles pour un même endroit dans un texte. [3.5. Simple Editorial Changes]
element choice {
(model.choicePart | choice)+, att.global.attributes, empty
(model.choicePart | choice), att.global.attributes, empty
}
reg =

Expand Down
2 changes: 1 addition & 1 deletion Test/expected-results/test30.dtd
Original file line number Diff line number Diff line change
Expand Up @@ -1543,7 +1543,7 @@ Elements] -->
%Tatt.typed.attributes;
target CDATA #IMPLIED >
<!--doc:(choice) groups a number of alternative encodings for the same point in a text. [3.5. Simple Editorial Changes] -->
<!ELEMENT choice (%model.choicePart;|choice)+>
<!ELEMENT choice (%model.choicePart;|choice)>
<!ATTLIST choice xmlns CDATA "http://www.tei-c.org/ns/1.0">
<!ATTLIST choice
%Tatt.global.attributes; >
Expand Down
2 changes: 1 addition & 1 deletion Test/expected-results/test30.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -2810,7 +2810,7 @@ Tchoice =

## (choice) groups a number of alternative encodings for the same point in a text. [3.5. Simple Editorial Changes]
element choice {
(Tmodel.choicePart | Tchoice)+, Tatt.global.attributes, empty
(Tmodel.choicePart | Tchoice), Tatt.global.attributes, empty
}
Treg =

Expand Down
2 changes: 1 addition & 1 deletion Test/expected-results/test33.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -2542,7 +2542,7 @@ tei_choice =

## (choice) groups a number of alternative encodings for the same point in a text. [3.5. Simple Editorial Changes]
element tei:choice {
(tei_model.choicePart | tei_choice)+,
(tei_model.choicePart | tei_choice),
tei_att.global.attributes,
empty
}
Expand Down
2 changes: 1 addition & 1 deletion Test/expected-results/test34.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -2547,7 +2547,7 @@ tei_choice =

## (choice) groups a number of alternative encodings for the same point in a text. [3.5. Simple Editorial Changes]
element choice {
(tei_model.choicePart | tei_choice)+,
(tei_model.choicePart | tei_choice),
tei_att.global.attributes,
empty
}
Expand Down
2 changes: 1 addition & 1 deletion Test/expected-results/test35.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -2542,7 +2542,7 @@ tei_choice =

## (choice) groups a number of alternative encodings for the same point in a text. [3.5. Simple Editorial Changes]
element tei:choice {
(tei_model.choicePart | tei_choice)+,
(tei_model.choicePart | tei_choice),
tei_att.global.attributes,
empty
}
Expand Down
Loading

0 comments on commit f280564

Please sign in to comment.