chaoranxie / AMC-Trip-Listings

Code to format event listings as HTML, email, RSS, and iCalendar using XSLT.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AMC Trip Listings

This is the code used to format the trip listings for several chapters of the Appalachian Mountain Club, publishing updates regularly to the web and sending a weekly HTML and text email to several thousand recipients.

You can see sample output at the AMC Boston Young Members Trip Listings.

It also outputs iCalendar format files and RSS feeds, so you can subscribe to see a chapter’s trip listings in your calendar or in a newsreader.

It’s been sending out regular emails and publishing trip listings since 2004, with some maintenance to keep up with changes to the source trip format.

As sample code, it demonstrates:

  • Complex formatting with XSLT, including grouping using the Muenchian method.

  • Date formatting with EXSLT.

  • Server-side caching of a dynamically generated page.

  • Automated FTP and SFTP uploads of a dynamically-generated file from a PHP script.

  • Generating an HTML email.

  • XSLT code to create an RSS feed.

  • XSLT code to create an iCalendar file.

  • Automation of DadaMail, a program designed for manual one-off mailings, by simulating a browser user. (DadaMail was the available mailing list software on the server, and sending mail through it lets us take advantage of its list management, rate-limited batching, and reporting.)

License

BSD 2-clause license. See LICENSE file.

Contact

Find this project on GitHub.

Written by Andrew Shearer. Email / Web site.

About

Code to format event listings as HTML, email, RSS, and iCalendar using XSLT.

License:BSD 2-Clause "Simplified" License


Languages

Language:XSLT 47.6%Language:JavaScript 22.1%Language:PHP 14.0%Language:HTML 12.5%Language:CSS 3.8%