I made some progress today on localizing a congressional roll call vote.
As you might expect, I chose to localize to the representatives from Georgia. 😉
I used a FLWOR expression to select legislators where the attribute state = GA.
Here is that expression:
<ul>
{for $voter in doc(“http://clerk.house.gov/evs/2015/roll705.xml”)//recorded-vote
where $voter/legislator[@state = ‘GA’]
return <li> {string($voter/legislator)} — {string($voter/vote)}</li>
}</ul>
Which makes our localized display a bit better for local readers but only just.
See roll705-local.html.
What we need is more information that can be found at: http://clerk.house.gov/evs/2015/roll705.xml.
More on that tomorrow!