از BallotSelection برای شناسایی گزینههای برگه رأی در رقابت استفاده کنید، مثلاً
وقتی نامزدها و احزاب را به تعداد آرایشان پیوند میدهید.
این سند درباره BallotSelection و نهادهای فرعی آن بحث میکند:
BallotSelectionCandidateSelectionPartySelectionBallotMeasureSelectionSpecialBallotSelection
یکی از انواع فید زیر را انتخاب کنید تا درباره نحوه استفاده از
BallotSelection و عناصر ذاتی آن با آن نوع فید بیشتر بدانید.
SpecialBallotSelection
این نوع BallotSelection برای تجمیع شمارش آرا (مثلاً تجمیع چندین نامزد در «سایرین») و انواع مختلف غیررأی (یعنی برگههای رأی سفید، برگههای رأی باطل یا مخدوش، و آرای «هیچکدام از موارد بالا») استفاده میشود.
SpecialBallotSelection نباید در زیرعنصر عمومی BallotSelection از Contest استفاده شود و بهجای آن فیلدهای متمایز خود را در Contest دارد، یعنی AggregateBallotSelection، BlankBallotSelection، NoneOfTheAboveBallotSelection، و NullBallotSelection. برای جزئیات بیشتر،
عناصر Contest را ببینید.
عناصر
جدول زیر عناصر SpecialBallotSelection را شرح میدهد:
| عنصر | چندگانگی | نوع | شرح |
|---|---|---|---|
CountedInTotal |
۰ یا ۱ | boolean |
اینکه آیا تعداد آرای انتخاب نهاد در کل آرای دادهشده که قابلتوجه درنظر گرفته میشود شمارش شده است یا نه. اگر مشخص نشده باشد، true فرض میشود.
|
ExternalIdentifiers |
۰ یا ۱ | ExternalIdentifiers |
شناسهای را با انتخاب همهپرسی مرتبط میکند. یک شناسه پایدار الزامی است. |
Selection |
1 | InternationalizedText |
نامی برای این انتخاب برگه رأی ارائه میدهد، مثلاً «دیگران» یا «هیچکدام از موارد بالا». |
مثالها
XML
<AggregateBallotSelection objectId="sbs-3"> <Selection> <Text language="en">Other Candidates</Text> </Selection> <ExternalIdentifiers> <ExternalIdentifier> <Type>other</Type> <OtherType>stable</OtherType> <Value>sbs-3</Value> </ExternalIdentifier> </ExternalIdentifiers> </AggregateBallotSelection> <!-- Counts of ballots left blank --> <BlankBallotSelection objectId="sbs-4"> <Selection> <Text language="en">Blank ballots</Text> </Selection> <!-- These ballots count in the total and can affect majorities --> <CountedInTotal>true</CountedInTotal> <ExternalIdentifiers> <ExternalIdentifier> <Type>other</Type> <OtherType>stable</OtherType> <Value>sbs-4</Value> </ExternalIdentifier> </ExternalIdentifiers> </BlankBallotSelection> <!-- Votes for "None of the above" option on the ballot --> <NoneOfTheAboveBallotSelection objectId="sbs-5"> <!-- The NOTA selection optiona as it appears on the ballot, often "None of the above", "None", or "Uncommitted" --> <Selection> <Text language="en">None</Text> </Selection> <!-- These ballots count in the total and can affect majorities --> <CountedInTotal>true</CountedInTotal> <ExternalIdentifiers> <ExternalIdentifier> <Type>other</Type> <OtherType>stable</OtherType> <Value>sbs-5</Value> </ExternalIdentifier> </ExternalIdentifiers> </NoneOfTheAboveBallotSelection> <!-- Counts of null or spoiled ballots, i.e. ballots that have been marked in a way that the vote cannot be counted --> <NullBallotSelection objectId="sbs-6"> <!-- How these ballots are often called in a given country, often "null" or "spoiled" --> <Selection> <Text language="en">Spoiled ballots</Text> </Selection> <!-- These ballots do count in the total and are treated as the same as if this vote did not happen at all --> <CountedInTotal>false</CountedInTotal> <ExternalIdentifiers> <ExternalIdentifier> <Type>other</Type> <OtherType>stable</OtherType> <Value>sbs-6</Value> </ExternalIdentifier> </ExternalIdentifiers> </NullBallotSelection>