OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

election-services message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [election-services] RE: Enhancing Referendum items handling


Paul,
 
Followup note here - I've put together an XML example to illustrate the concepts in action here!
 
Fragment below for an EML 510 shows how the new structure works for recording count totals for regular candidate and then referendum items - so you can see how this fits into the existing paradigm.
 
Thanks, DW

"The way to be is to do" - Confucius (551-472 B.C.)
Existing structure:

<Selection>
- <Candidate>
  <CandidateIdentifier Id="133" DisplayOrder="573" />
  </Candidate>
  <ValidVotes>17</ValidVotes>
  </Selection>
- <Selection>
- <Candidate>
  <CandidateIdentifier Id="143" DisplayOrder="574" />
  </Candidate>
  <ValidVotes>12</ValidVotes>
  </Selection>
  </ReportingUnitVotes>
  </Contest>
 
New referendum ProposalItem capable approach:
 
- <Contest>
  <ContestIdentifier Id="19000000001A" />
- <TotalVotes>
- <Selection>
- <Candidate>
  <ProposalItem ReferendumOptionIdentifier="19000000001A-YES" />
  </Candidate>
  <ValidVotes>6400587</ValidVotes>
  </Selection>
- <Selection>
- <Candidate>
  <ProposalItem ReferendumOptionIdentifier="19000000001A-NO" />
  </Candidate>
  <ValidVotes>1916925</ValidVotes>
  </Selection>
  </TotalVotes>
  </Contest>
- <Contest>
  <ContestIdentifier Id="19000000001B" />
- <TotalVotes>
- <Selection>
- <Candidate>
  <ProposalItem ReferendumOptionIdentifier="19000000001B-YES" />
  </Candidate>
  <ValidVotes>5112142</ValidVotes>
  </Selection>
- <Selection>
- <Candidate>
  <ProposalItem ReferendumOptionIdentifier="19000000001B-NO" />
  </Candidate>
  <ValidVotes>3218657</ValidVotes>
  </Selection>
  </TotalVotes>
  </Contest>
  </Contests>
  </Election>
  </Count>
  </EML>


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]