Skip to content

Instantly share code, notes, and snippets.

@craigtommola
Created April 12, 2019 17:33
Show Gist options
  • Save craigtommola/78eb456dd14268138130274ee8493455 to your computer and use it in GitHub Desktop.
Save craigtommola/78eb456dd14268138130274ee8493455 to your computer and use it in GitHub Desktop.
OUTC19: Radiohead
<xsl:template match="loadRadioheadFeed" name="loadRadioheadFeed">
<xsl:variable name="feed-path"><xsl:text>/_showcase/craigdev/outc19demo/radiohead.xml</xsl:text></xsl:variable>
<xsl:if test="unparsed-text-available(concat($domain, $feed-path))">
<xsl:variable name="radioheadFeed" select="document(concat($domain, $feed-path))"/>
<h2>Radiohead Discography</h2>
<xsl:for-each select="$radioheadFeed/RADIOHEAD/ALBUM">
<img class="album-art">
<xsl:attribute name="src">
<xsl:value-of select="ALBUM_ART/node()" />
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="ALBUM_NAME/node()" />
</xsl:attribute>
</img>
<h3 class="album-name"><xsl:value-of select="ALBUM_NAME/node()" /></h3>
<p class="release-date"><em><xsl:value-of select="ALBUM_RELEASE/node()" /></em></p>
<p class="intro"><xsl:value-of select="ALBUM_INTRO/node()" /></p>
</xsl:for-each>
</xsl:if>
</xsl:template>
/* This is specific to hope.edu templates - you will likely need to revise to accommodate your layout */
img.album-art {
width: 200px;
float: left;
margin: 0 24px 24px 0 !important;
}
h3.album-name {
margin: 0 0 .555555556em;
}
p.intro {
margin-bottom: 4em;
}
aside.tertiary > h2 {
font-weight: 700;
}
aside.tertiary > h2, aside.tertiary > h3.album-name {
font-family:"Verlag A","Verlag B","Verlag-Book",Helvetica,Arial,sans-serif;
text-transform: uppercase;
margin: 0 0 12px 0 !important;
text-align: center;
}
aside.tertiary > p.intro, aside.tertiary > p.release-date {
display: none;
}
aside.tertiary > img.album-art {
width: 100%;
margin: 0 !important;
}
<?xml version="1.0"?>
<RADIOHEAD>
<ALBUM>
<ALBUM_NAME>Pablo Honey</ALBUM_NAME>
<ALBUM_RELEASE>February 22, 1993</ALBUM_RELEASE>
<ALBUM_ART>https://upload.wikimedia.org/wikipedia/en/0/0f/Radiohead.pablohoney.albumart.jpg</ALBUM_ART>
<ALBUM_INTRO>Pablo Honey is the debut studio album by English rock band Radiohead. It was released on 22 February 1993 in the United Kingdom by Parlophone and in the United States by Capitol Records. It was primarily produced by Sean Slade and Paul Q. Kolderie and recorded at Chipping Norton Recording Studios in Oxfordshire from September to November 1992. The album's title comes from a prank call skit by The Jerky Boys in which the prank caller says to his victim, "Pablo, honey? Please come to Florida!"</ALBUM_INTRO>
</ALBUM>
<ALBUM>
<ALBUM_NAME>The Bends</ALBUM_NAME>
<ALBUM_RELEASE>March 13, 1995</ALBUM_RELEASE>
<ALBUM_ART>https://upload.wikimedia.org/wikipedia/en/8/8b/Radiohead.bends.albumart.jpg</ALBUM_ART>
<ALBUM_INTRO>The Bends is the second studio album by the English rock band Radiohead, released on 13 March 1995 by Parlophone in the United Kingdom and Capitol Records in the United States. It was produced by John Leckie, and engineered by Nigel Godrich, who has produced all of Radiohead's subsequent studio albums. It was the first Radiohead album with cover art by Stanley Donwood, who, with singer Thom Yorke, has produced all of Radiohead's artwork since.</ALBUM_INTRO>
</ALBUM>
<ALBUM>
<ALBUM_NAME>OK Computer</ALBUM_NAME>
<ALBUM_RELEASE>June 16, 1997</ALBUM_RELEASE>
<ALBUM_ART>https://upload.wikimedia.org/wikipedia/en/a/a1/Radiohead.okcomputer.albumart.jpg</ALBUM_ART>
<ALBUM_INTRO>OK Computer is the third studio album by English rock band Radiohead, released on 16 June 1997 on EMI subsidiaries Parlophone and Capitol Records. The members of Radiohead self-produced the album with Nigel Godrich, an arrangement they have used for their subsequent albums. Other than the song "Lucky", which was recorded in 1995, Radiohead recorded the album in Oxfordshire and Bath between 1996 and early 1997, mostly in the historic mansion St Catherine's Court. The band distanced themselves from the guitar-centred, lyrically introspective style of their previous album, The Bends. OK Computer's abstract lyrics, densely layered sound and eclectic range of influences laid the groundwork for Radiohead's later, more experimental work.</ALBUM_INTRO>
</ALBUM>
<ALBUM>
<ALBUM_NAME>Kid A</ALBUM_NAME>
<ALBUM_RELEASE>October 2, 2000</ALBUM_RELEASE>
<ALBUM_ART>https://upload.wikimedia.org/wikipedia/en/b/b5/Radiohead.kida.albumart.jpg</ALBUM_ART>
<ALBUM_INTRO>Kid A is the fourth studio album by the English rock band Radiohead, released on 2 October 2000 by Parlophone. After the stress of promoting Radiohead's acclaimed 1997 album OK Computer, songwriter Thom Yorke envisioned a radical change in direction. The band replaced their guitar rock sound with synthesisers, drum machines, the ondes Martenot, string orchestras and brass instruments, drawing influence from electronic music, krautrock, jazz, and 20th-century classical music. They recorded Kid A with OK Computer producer Nigel Godrich in Paris, Copenhagen, Gloucestershire and their hometown Oxford, England. The sessions produced over 20 tracks, and Radiohead split the work into two albums: Kid A, and Amnesiac, released the following year.</ALBUM_INTRO>
</ALBUM>
<ALBUM>
<ALBUM_NAME>Amnesiac</ALBUM_NAME>
<ALBUM_RELEASE>June 5, 2001</ALBUM_RELEASE>
<ALBUM_ART>https://upload.wikimedia.org/wikipedia/en/c/c5/Radiohead.amnesiac.albumart.jpg</ALBUM_ART>
<ALBUM_INTRO>Amnesiac is the fifth studio album by the English rock band Radiohead, released in June 2001 by Parlophone. Recorded with producer Nigel Godrich during the same sessions as Radiohead's previous album Kid A (2000), Amnesiac incorporates similar influences of electronic music, 20th-century classical music, jazz and krautrock. Only one track was recorded after Kid A: "Life in a Glasshouse", a collaboration with the Humphrey Lyttelton Band.</ALBUM_INTRO>
</ALBUM>
<ALBUM>
<ALBUM_NAME>Hail to the Thief</ALBUM_NAME>
<ALBUM_RELEASE>June 9, 2003</ALBUM_RELEASE>
<ALBUM_ART>https://upload.wikimedia.org/wikipedia/en/6/63/Radiohead_-_Hail_to_the_Thief_-_album_cover.jpg</ALBUM_ART>
<ALBUM_INTRO>Hail to the Thief is the sixth studio album by the English rock band Radiohead. It was released on 9 June 2003 by Parlophone in the UK and a day later by Capitol Records in the United States. It was the last album released under Radiohead's record contract with EMI.</ALBUM_INTRO>
</ALBUM>
<ALBUM>
<ALBUM_NAME>In Rainbows</ALBUM_NAME>
<ALBUM_RELEASE>October 10, 2007</ALBUM_RELEASE>
<ALBUM_ART>https://en.wikipedia.org/wiki/In_Rainbows#/media/File:In_Rainbows_Official_Cover.jpg</ALBUM_ART>
<ALBUM_INTRO>In Rainbows is the seventh studio album by English rock band Radiohead. It was self-released on 10 October 2007 as a pay-what-you-want download, followed by a physical release internationally by XL Recordings in December 2007 and in the United States on 1 January 2008 by TBD Records. It was Radiohead's first release after their recording contract with EMI ended with their previous album Hail to the Thief (2003).</ALBUM_INTRO>
</ALBUM>
<ALBUM>
<ALBUM_NAME>The King of Limbs</ALBUM_NAME>
<ALBUM_RELEASE>February 18, 2011</ALBUM_RELEASE>
<ALBUM_ART>https://upload.wikimedia.org/wikipedia/en/2/24/The_king_of_limbs.jpg</ALBUM_ART>
<ALBUM_INTRO>The King of Limbs is the eighth studio album by the English rock band Radiohead, self-released on 18 February 2011 as a download. CD and 12" vinyl versions were released on 28 March 2011 through XL Recordings in the United Kingdom, TBD Records in the United States, and Hostess Entertainment in Japan.</ALBUM_INTRO>
</ALBUM>
<ALBUM>
<ALBUM_NAME>A Moon Shaped Pool</ALBUM_NAME>
<ALBUM_RELEASE>May 8, 2016</ALBUM_RELEASE>
<ALBUM_ART>https://upload.wikimedia.org/wikipedia/en/c/c1/A_Moon_Shaped_Pool.jpg</ALBUM_ART>
<ALBUM_INTRO>A Moon Shaped Pool is the ninth studio album by the English rock band Radiohead. It was released digitally on 8 May 2016, with CD and vinyl releases in June 2016 through XL Recordings.</ALBUM_INTRO>
</ALBUM>
</RADIOHEAD>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment