Mashup fun


Crime mapEnjoyed learning a bit about transforming XML documents with XSLT in doing some homicide mashup maps for a series of stories reporter Matt Lakin is doing.

He had complied homicide cases since 2000 into two OpenOffice Calc (Excel compatible) spreadsheets. I converted the spreadsheets to XML docs, then "transformed" each XML document into an HTML file and an XML file in Yahoo's map format using a simple perl program (all my perl programs are simple) and an XSLT stylesheet.

One gotcha I ran into was that the same spreadsheets saved by Excel and OpenOffice produced different XML for the date field and another field with using XML||Excel in perl. I'll have to look at that some more.

I did run into some issues of things I didn't know how to do in XSLT stylesheets, but I worked around them and I did have to clean up some addresses in Yahoo..

I used XML and Perl by Mark Riehl and Ilya Sterin to learn how to do this. It's a good introduction, but you'll need a book about XSLT if you want to do more than scratch the surface.

The results:

Knoxville homicides

Knox County homicides

Related Entries

2 Comments

Where did you get the data/spreadsheets for these?

The reporter created the spreadsheets after going through the reports. He'd been working on this for some time.

Leave a comment



Recent Entries

  • A carnival of wish lists

    Image via WikipediaA roundup of the December Carnival of Journalism is up on the Guardian Developer Blog.My offering was called Just Surprise Me and is...

  • Just surprise me

    This month's Carnival of Journalism is themed for the holiday season.THE TOPICWith it being December, we thought we would adopt a Christmas theme for this...

  • The text message is still a teenager

    Source: Tatango SMS Marketing Cell phone text messaging turns 19 today. How long have you been texting? Related articlesSMS Marketing to College Students (tatango.com)Where...

  • A newspaper company invented the iPad

    And you thought it was Apple. Silly you. Samsung doesn't think so and its attorneys have set out to prove that. Who invented the iPad?...

  • Gannett, NYT launch comment system changes

    Gannett Corp. and the New York Times have rolled out changes to comments on their web sites. Gannett, which had been piloting using Facebook comments...

Subscribe to JackLail.com by Email
Close