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: Strawman for EML 530 Statistics


Team attached sample and XSD.
 
Comments?
 
DW

"The way to be is to do" - Confucius (551-472 B.C.)
<?xml version="1.0" encoding="utf-8"?>
<!--
  EML 530 Schema - Statistics Reporting

  History: 5.0 Edited by David RR Webber 2007-06-30
               - Initial draft release for comment
  -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns="urn:oasis:names:tc:evs:schema:eml" targetNamespace="urn:oasis:names:tc:evs:schema:eml" elementFormDefault="qualified" attributeFormDefault="unqualified" version="5.0" id="eml-510">
	<xs:include schemaLocation="emlcore-v5-0.xsd"/>
	<xs:element name="EML">
		<xs:complexType>
			<xs:complexContent>
				<xs:extension base="EMLstructure">
					<xs:sequence>
						<xs:element ref="Statistics"/>
					</xs:sequence>
				</xs:extension>
			</xs:complexContent>
		</xs:complexType>
		<xs:unique name="DisplayOrder">
			<xs:selector xpath=".//*"/>
			<xs:field xpath="@DisplayOrder"/>
		</xs:unique>
	</xs:element>
	<xs:element name="Statistics">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="EventIdentifier"/>
				<xs:element name="Election" maxOccurs="unbounded">
					<xs:complexType>
						<xs:sequence>
							<xs:element ref="ElectionIdentifier"/>
							<xs:element name="Contests">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="Contest" maxOccurs="unbounded">
											<xs:complexType>
												<xs:sequence>
													<xs:element ref="ContestIdentifier"/>
													<xs:element ref="CountQualifier" minOccurs="0"/>
													<xs:element ref="CountingAlgorithm" minOccurs="0"/>
													<xs:element ref="NumberOfPositions" minOccurs="0"/>
													<xs:choice>
														<xs:sequence>
															<xs:element name="TotalVotes">
																<xs:complexType>
																	<xs:sequence>
																	<xs:element name="CountMetric" type="CountMetricsStructure" minOccurs="0" maxOccurs="unbounded"/>
																		<xs:group ref="VoteGroup" minOccurs="0"/>
																	</xs:sequence>
																</xs:complexType>
															</xs:element>
															<xs:element ref="ReportingUnitVotes" minOccurs="0" maxOccurs="unbounded"/>
														</xs:sequence>
														<xs:element ref="ReportingUnitVotes"/>
													</xs:choice>
												</xs:sequence>
												<xs:attribute name="ReportType" type="xs:token"></xs:attribute>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
				<xs:element ref="AuditInformation" minOccurs="0"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="ReportingUnitVotes">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="ReportingUnitIdentifier"/>
				  <xs:sequence>
				  	<xs:element name="CountMetric" type="CountMetricsStructure" minOccurs="0" maxOccurs="unbounded"/>
				   </xs:sequence>
				<xs:group ref="VoteGroup" minOccurs="0"/>
			</xs:sequence>
			<xs:attribute name="ReportType" type="xs:token" ></xs:attribute>
		</xs:complexType>
	</xs:element>
	<xs:group name="VoteGroup">
		<xs:sequence>
			<xs:element name="Selection" minOccurs="0" maxOccurs="unbounded">
				<xs:complexType>
					<xs:sequence>
						<xs:choice>
							<xs:sequence>
								<xs:element ref="Candidate"/>
							</xs:sequence>
							<xs:sequence>
								<xs:element ref="ReferendumOptionIdentifier"/>
							</xs:sequence>
							<xs:element ref="AffiliationIdentifier" minOccurs="0" maxOccurs="unbounded"/>
						</xs:choice>
						<xs:element name="ValidVotes" minOccurs="0" type="xs:nonNegativeInteger"/>
						<xs:element name="CountMetric" type="CountMetricsStructure" minOccurs="0" maxOccurs="unbounded"/>
					</xs:sequence>
					<xs:attribute name="Value" type="VotingValueType" use="optional"/>
					<xs:attribute name="Category" type="xs:token" use="optional"/>
				</xs:complexType>
			</xs:element>
			<xs:element name="Cast" type="xs:nonNegativeInteger" minOccurs="0"/>
			<xs:element name="Read" type="xs:nonNegativeInteger" minOccurs="0"/>
			<xs:element name="TotalCounted" type="xs:nonNegativeInteger" minOccurs="0"/>
			<xs:element name="Provisionals" type="xs:nonNegativeInteger" minOccurs="0"/>
			<xs:element name="Abstentions" type="xs:nonNegativeInteger" minOccurs="0"/>
			<xs:element name="RejectedVotes" minOccurs="0" maxOccurs="unbounded">
				<xs:complexType>
					<xs:simpleContent>
						<xs:extension base="xs:nonNegativeInteger">
							<xs:attribute name="Reason" type="xs:token" use="optional"/>
							<xs:attribute name="ReasonCode" type="xs:token" use="required"/>
							<xs:attribute name="VoteType" type="xs:token" use="optional"/>
						</xs:extension>
					</xs:simpleContent>
				</xs:complexType>
			</xs:element>
			<xs:element name="UncountedVotes" minOccurs="0" maxOccurs="unbounded">
				<xs:complexType>
					<xs:simpleContent>
						<xs:extension base="xs:nonNegativeInteger">
							<xs:attribute name="Reason" type="xs:token" use="optional"/>
							<xs:attribute name="ReasonCode" type="xs:token" use="required"/>
							<xs:attribute name="VoteType" type="xs:token" use="optional"/>
						</xs:extension>
					</xs:simpleContent>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:group>
	<xs:complexType name="CountMetricsStructure">
		<xs:simpleContent>
			<xs:extension base="xs:string">
			<xs:attribute name="Id" type="xs:token" use="optional"/>
			<xs:attribute name="Type" type="xs:string" use="required"/>
			</xs:extension>
		</xs:simpleContent>
	</xs:complexType>
</xs:schema>
<EML xmlns="urn:oasis:names:tc:evs:schema:eml"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
 Id="530"
 SchemaVersion="5.0">
  <TransactionId>23</TransactionId>
  <MessageLanguage>en-US</MessageLanguage>
  <IssueDate>2006-12-14T20:06:12.003</IssueDate>
  <Statistics>
    <EventIdentifier Id="2006_Sample_General_Election" />
    <Election>
      <ElectionIdentifier Id="20061107" />
      <Contests>
        <Contest ReportType="F">
        <ContestIdentifier Id="001">
          <ContestName>County Statistics</ContestName>
        </ContestIdentifier>
        <TotalVotes>
            <CountMetric Id="PR" Type="Precincts Reporting">25090</CountMetric>
            <CountMetric Id="TP" Type="Total Precincts">25090</CountMetric>
            <CountMetric Id="PP" Type="Precincts Reporting Percentage">100.0</CountMetric>
            <CountMetric Id="VT" Type="Voter Turnout">8897376</CountMetric>
            <CountMetric Id="TV" Type="Total Registered Voters">15837108</CountMetric>
            <CountMetric Id="VP" Type="Voter Turnout Percentage">56.2</CountMetric>
            <CountMetric Id="FD" Type="First Report Day ">7</CountMetric>
            <CountMetric Id="FT" Type="First Report Time">8:01 PM</CountMetric>
            <CountMetric Id="LD" Type="Last Report Day ">14</CountMetric>
            <CountMetric Id="LT" Type="Last Report Time">2:44 PM</CountMetric>
          </TotalVotes>

        <ReportingUnitVotes ReportType="F">
          <ReportingUnitIdentifier Id="01">County Name #1</ReportingUnitIdentifier>
           <CountMetric Id="PR" Type="Precincts Reporting">1219</CountMetric>
           <CountMetric Id="TP" Type="Total Precincts">1219</CountMetric>
           <CountMetric Id="PP" Type="Precincts Reporting Percentage">100.0</CountMetric>
           <CountMetric Id="VT" Type="Voter Turnout">415638</CountMetric>
           <CountMetric Id="TV" Type="Total Registered Voters">678765</CountMetric>
           <CountMetric Id="VP" Type="Voter Turnout Percentage">61.2</CountMetric>
           <CountMetric Id="FD" Type="First Report Day ">7</CountMetric>
           <CountMetric Id="FT" Type="First Report Time">9:49 PM</CountMetric>
           <CountMetric Id="LD" Type="Last Report Day ">13</CountMetric>
           <CountMetric Id="LT" Type="Last Report Time">9:52 AM</CountMetric>
        </ReportingUnitVotes>
        <ReportingUnitVotes ReportType="F">
          <ReportingUnitIdentifier Id="02">County Name #2</ReportingUnitIdentifier>
          <CountMetric Id="PR" Type="Precincts Reporting">5</CountMetric>
          <CountMetric Id="TP" Type="Total Precincts">5</CountMetric>
          <CountMetric Id="PP" Type="Precincts Reporting Percentage">100.0</CountMetric>
          <CountMetric Id="VT" Type="Voter Turnout">556</CountMetric>
          <CountMetric Id="TV" Type="Total Registered Voters">775</CountMetric>
          <CountMetric Id="VP" Type="Voter Turnout Percentage">71.7</CountMetric>
          <CountMetric Id="FD" Type="First Report Day ">7</CountMetric>
          <CountMetric Id="FT" Type="First Report Time">9:17 PM</CountMetric>
          <CountMetric Id="LD" Type="Last Report Day ">5</CountMetric>
          <CountMetric Id="LT" Type="Last Report Time">9:12 AM</CountMetric>
        </ReportingUnitVotes>
        </Contest>
      </Contests>
    </Election>
  </Statistics>
</EML>


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