I have an .xml doc with over 35,000 entries that I converted from an
Excel file. Each entry (element/person) has the typical firstname,
lastname, email, city, state child elements. I need to dynamically
tabulate the total number of people who live in each state. Is there a
way to do this with XSL, or Javascript?
This is for a Google Maps project. I'd like to be able to display the
number of Alumni living in each state in the mouseover window.
Sample XML:
<USalumni>
<alum>
<alumniID>1</alumniID>
<firstname>John</firstname>
<lastname>Doe</lastname>
<email>jondoe@email.com</email>
<state>IL</state>
<country>US</country>
</alum>
<alum>
<alumniID>2</alumniID>
<firstname>Sam</firstname>
<lastname>Sonite</lastname>
<email>samsonite@email.com</email>
<state>IL</state>
<country>US</country>
</alum>
<alum>
<alumniID>3</alumniID>
<firstname>David</firstname>
<lastname>Davidson</lastname>
<email>Dave@email.com</email>
<state>MI</state>
<country>US</country>
</alum>
<alum>
<alumniID>4</alumniID>
<firstname>Snow</firstname>
<lastname>White</lastname>
<email>snow@email.com</email>
<state>LA</state>
<country>US</country>
</alum>
<alum>
<alumniID>5</alumniID>
<firstname>Mary</firstname>
<lastname>Lamb</lastname>
<email>lamb@email.com</email>
<state>IL</state>
<country>US</country>
</alum>
<alum>
<alumniID>6</alumniID>
<firstname>Jane</firstname>
<lastname>Smith</lastname>
<email>jsmith@email.com</email>
<state>MO</state>
<country>US</country>
</alum>
</USalumni>