Skip to content

Instantly share code, notes, and snippets.

@alpacaaa
Forked from stuartgpalmer/master.xml
Created October 19, 2011 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alpacaaa/1298541 to your computer and use it in GitHub Desktop.
Save alpacaaa/1298541 to your computer and use it in GitHub Desktop.
<data>
<upcoming-events>
<section id="15" handle="upcoming-events">Upcoming events</section>
<entry id="1037">
<title handle="brockwell-park-firework-display-saturday-5th-november">BROCKWELL PARK FIREWORK DISPLAY - Saturday 5th November</title>
<date time="18:12" weekday="6">2011-11-05</date>
<time handle="700-745pm">7.00-7.45pm</time>
<location handle="outside-brockwell-hall-brockwell-park">Outside Brockwell Hall, Brockwell Park</location>
<content>Due to our MASSIVE successes at the Lambeth Country Show and the car-free days, Lambeth Events team have asked us to sing before the Firework Display in Brockwell Park. Wrap up warm in your Popchoir Sweatshirt and come along with your family and friends to enjoy the funfair and the fireworks as well as our own performance! And yes - they've learned their lesson - there WILL be a PA system this time!!!</content>
<choirs>
<item id="46" handle="adult" section-handle="choirs" section-name="Choirs">Adult</item>
</choirs>
</entry>
<entry id="1038">
<title handle="possible-date-in-covent-garden-either-12th-november-10th-or-17th-december-to-be-confirmed">Possible date in Covent Garden - either 12th November, 10th or 17th December - to be confirmed</title>
<date time="18:14" weekday="6">2011-11-12</date>
<time handle="tbc">tbc</time>
<location handle="piazza-covent-garden">Piazza Covent Garden</location>
<content>Not confirmed yet, but please pencil in these dates. Could be fabulous!</content>
<choirs>
<item id="46" handle="adult" section-handle="choirs" section-name="Choirs">Adult</item>
</choirs>
</entry>
<entry id="1032">
<title handle="christmas-ideal-home-exhibition-sunday-20th-november">CHRISTMAS IDEAL HOME EXHIBITION - SUNDAY 20th November</title>
<date time="17:53" weekday="7">2011-11-20</date>
<time handle="1030am-1200pm">10.30am - 12.00pm</time>
<location handle="olympia">OLYMPIA</location>
<content>Popchoir have been invited to perform at thie Ideal Home Exhibition on Sunday 20th November. This is a great opportunity to sing to thousands of visitors to the show and afterwards have a look round it ourselves!</content>
<choirs>
<item id="46" handle="adult" section-handle="choirs" section-name="Choirs">Adult</item>
<item id="48" handle="teen" section-handle="choirs" section-name="Choirs">Teen</item>
</choirs>
</entry>
<entry id="1033">
<title handle="st-mildreds-centre-christmas-fair-saturday-26th-november">ST MILDRED'S CENTRE CHRISTMAS FAIR - Saturday 26th November</title>
<date time="17:57" weekday="6">2011-11-26</date>
<time handle="1200-100pm">12.00-1.00pm</time>
<location handle="st-mildreds-centre-bingham-road-croydon-cr0-7eb">St Mildred's Centre, Bingham Road, Croydon CR0 7EB</location>
<content>Popchoir will be performing at St Mildred's Christmas Fayre on 26th November. This is the home of Popchoir Croydon so lovely for us to be able to support this great venue. Lots of stalls and activities so another good occasion for the family. Event runs from 11.00 - 2.00pm with Popchoir on stage at midday.</content>
<choirs>
<item id="46" handle="adult" section-handle="choirs" section-name="Choirs">Adult</item>
<item id="48" handle="teen" section-handle="choirs" section-name="Choirs">Teen</item>
</choirs>
</entry>
<entry id="1034">
<title handle="alleyns-school-holly-fair-saturday-3rd-december">ALLEYN'S SCHOOL HOLLY FAIR - Saturday 3rd December</title>
<date time="17:59" weekday="6">2011-12-03</date>
<time handle="1230pm">12.30pm</time>
<location handle="alleyns-school-townley-road-dulwich">Alleyn's School, Townley Road, Dulwich</location>
<content>Back by popular demand and rattling the tins for Macmillan while we sing, this is our second outing to Alleyn's school to add some entertainment to the Holly Fair.</content>
<choirs>
<item id="46" handle="adult" section-handle="choirs" section-name="Choirs">Adult</item>
<item id="48" handle="teen" section-handle="choirs" section-name="Choirs">Teen</item>
</choirs>
</entry>
<entry id="1035">
<title handle="whitgift-centre-christmas-singing-for-macmillan-cancer-support-sunday-11th-december">WHITGIFT CENTRE CHRISTMAS SINGING FOR MACMILLAN CANCER SUPPORT - Sunday 11th December</title>
<date time="18:01" weekday="7">2011-12-11</date>
<time handle="1100am-200pm">11.00am - 2.00pm</time>
<location handle="whitgift-shopping-centre-croydon">Whitgift Shopping Centre, Croydon</location>
<content>After last year's incredibly successful weekend of fundraising for Macmillan, we are back in the Whitgift Centre to bring our own special brand of cheer to the Christmas Shoppers. We raised a fantastic amount of money last year so hoping to top that this time. Bucket/can rattlers also needed.</content>
<choirs>
<item id="46" handle="adult" section-handle="choirs" section-name="Choirs">Adult</item>
<item id="48" handle="teen" section-handle="choirs" section-name="Choirs">Teen</item>
</choirs>
</entry>
</upcoming-events>
<events-by-member>
<section id="16" handle="attendee-status">Attendee status</section>
<entry id="1144">
<event-id handle="1038">1038</event-id>
<member-id handle="28">28</member-id>
<status>
<item handle="yes">Yes</item>
</status>
</entry>
</events-by-member>
</data>
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml"
omit-xml-declaration="yes"
encoding="UTF-8"
indent="yes" />
<xsl:param name="member-id" select="'a-member'" />
<xsl:template match="data">
<xsl:for-each select="upcoming-events/entry">
<form class="status" method="post" action="" enctype="multipart/form-data">
<input name="MAX_FILE_SIZE" type="hidden" value="10484880" />
<xsl:if test="/data/events-by-member/entry[event-id = current()/@id]">
<input name="id" type="hidden" value="{@id}" />
</xsl:if>
<input name="fields[member-id]" type="hidden" value="{$member-id}" />
<input name="fields[event-id]" type="hidden" value="{@id}" />
<select name="fields[status]">
<option value="">Update status</option>
<option value="Yes">Yes</option>
<option value="Maybe">Maybe</option>
<option value="No">No</option>
</select>
<input name="action[attendee-status]" type="submit" value="Submit" />
</form>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment