Skip to content

Instantly share code, notes, and snippets.

@bzerangue
bzerangue / date-utility_RFC-to-ISO.xsl
Created April 1, 2009 13:30
RFC 2822 to ISO XSL Utility
<?xml version="1.0" encoding="UTF-8" ?>
<!--
XSL Utility for Symphony 2
Convert RSS feed date format to Symphony date format
Convert RFC 2822 timestamp format to ISO date format minus the time info (Symphony CMS date format)
RFC 2822 format: Sun, 7 Jan 2007 12:00:00 GMT
ISO 8601 format (minus the time info): 2007-01-07
-->
<xsl:stylesheet version="1.0"
@bzerangue
bzerangue / master.xsl
Created November 15, 2010 21:36
HTML5 Boilerplate XSLT Master Stylesheet, see html5boilerplate.com
<?xml version="1.0" encoding="UTF-8" ?>
<!--
HTML5 Boilerplate XSLT Master Stylesheet (based on Paul Irish's HTML5 Boilerplate index.html file)
Created by Brian Zerangue on 2010-11-15.
Copyright (c) 2010 Paul Irish (Everything but the XSLT), Brian Zerangue (XSLT).
HTML5 Boilerplate, http://html5boilerplate.com
-->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
@bzerangue
bzerangue / yahoo-weather-condition-codes.xml
Created February 1, 2011 06:53
Yahoo Weather Condition Codes
<?xml version="1.0" encoding="UTF-8"?>
<yahoo-weather-codes>
<code number="0" description="tornado"/>
<code number="1" description="tropical storm"/>
<code number="2" description="hurricane"/>
<code number="3" description="severe thunderstorms"/>
<code number="4" description="thunderstorms"/>
<code number="5" description="mixed rain and snow"/>
<code number="6" description="mixed rain and sleet"/>
<code number="7" description="mixed snow and sleet"/>
@bzerangue
bzerangue / google-weather-api-conditions.xml
Created February 1, 2011 23:13
Google Weather API Conditions List
<?xml version="1.0" encoding="UTF-8"?>
<!--Google Weather API Conditions. Compiled by Dennis Delimarsky, http://dennisdel.com/content/conditions.xml-->
<!--Tweaked by Brian Zerangue, February 1, 2011-->
<conditions>
<type handle="partly-sunny">Partly Sunny</type>
<type handle="scattered-thunderstorms">Scattered Thunderstorms</type>
<type handle="showers">Showers</type>
<type handle="scattered-showers">Scattered Showers</type>
<type handle="rain-and-snow">Rain and Snow</type>
<type handle="overcast">Overcast</type>
@bzerangue
bzerangue / facebook-like-utility.xsl
Last active January 10, 2020 13:51
[XSLT] Facebook Like XSLT Utility
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fb="http://www.facebook.com/2008/fbml"
xmlns:og="http://ogp.me/ns#"
exclude-result-prefixes="fb og"
version="1.0">
<!--
Name: Facebook Like Utility
Version: 1.0.1
@bzerangue
bzerangue / get-last-fm-recent-tracks.xsl
Created February 22, 2011 06:50
Last.fm Recent Tracks by User
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<!--
Name: Last.fm Recent Tracks by User
Version: 1.0
Author: Brian Zerangue <brian.zerangue@gmail.com>
REQUIRED PARAMETERS: api-key, username
@bzerangue
bzerangue / rfc-date-to-iso-date.xsl
Created March 9, 2011 16:11
[XSLT] Convert RFC 2822 format to ISO date format
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Name: RSS feed date format to Symphony date format
Version: 1.0
Author: Brian Zerangue <brian.zerangue@gmail.com>
URL: http://symphony21.com/downloads/xslt/file/20457/
Description:
Convert RSS feed date format to Symphony date format
Convert RFC 2822 timestamp format to ISO date format minus the time info (Symphony CMS date format)
@bzerangue
bzerangue / canada-provinces.xml
Created May 21, 2011 19:32
Canada Provinces
<?xml version="1.0" encoding="UTF-8"?>
<!-- Canada provinces -->
<provinces country="Canada">
<province name="Alberta" french-name="Alberta" abbreviation="AB" capital="Edmonton" founded="1905" time-zone-1="MST (UTC-07)"/>
<province name="British Columbia" french-name="Colombie-Britannique" abbreviation="BC" capital="Victoria" founded="1871" time-zone-1="PST (UTC-08)" time-zone-2="MST (UTC-07)"/>
<province name="Manitoba" french-name="Manitoba" abbreviation="MB" capital="Winnipeg" founded="1870" time-zone-1="CST (UTC-06)"/>
<province name="New Brunswick" french-name="Nouveau-Brunswick" abbreviation="NB" capital="Fredericton" founded="1867" time-zone-1="AST (UTC-04)"/>
<province name="Newfoundland and Labrador" french-name="Terre-Neuve-et-Labrador" abbreviation="NL" capital="St. John's" founded="1949" time-zone-1="AST (UTC-04)" time-zone-2="NST (UTC-03:30)"/>
<province name="Northwest Territories" french-name="Territoires du Nord-Ouest" abbreviation="NT" capital="Yellowkn
@bzerangue
bzerangue / us-states.xml
Created May 21, 2011 20:54
List of States in the United States of America (with dates of when they became as state)
<?xml version="1.0" encoding="UTF-8"?>
<states nation="United States of America" nation-abbreviation="USA" nation-capital="Washington, D.C.">
<state name="Alabama" abbreviation="AL" capital="Montgomery" date="1819-12-14" most-populous-city="Birmingham" population="4708708" square-miles="52423" time-zone-1="CST (UTC-06)" time-zone-2="EST (UTC-05)" dst="Yes"/>
<state name="Alaska" abbreviation="AK" capital="Juneau" date="1959-01-03" most-populous-city="Anchorage" population="698473" square-miles="656425" time-zone-1="AKST (UTC-09)" time-zone-2="HST (UTC-10)" dst="Yes"/>
<state name="Arizona" abbreviation="AZ" capital="Phoenix" date="1912-02-14" most-populous-city="Phoenix" population="6595778" square-miles="114006" time-zone-1="MT (UTC-07)" dst="No"/>
<state name="Arkansas" abbreviation="AR" capital="Little Rock" date="1836-06-15" most-populous-city="Little Rock" population="2889450" square-miles="53182" time-zone-1="CST (UTC-06)" dst="Yes"/>
<state name="California" abbreviation="CA" capital="Sacrame
@bzerangue
bzerangue / google-plus-one.xsl
Last active August 16, 2020 21:52
[XSLT] Google +1 XSL Utility
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:g="http://schemas.google.com/g/2005"
exclude-result-prefixes="g">
<!--
Name: Google +1 Utility
Version: 1.0.1
Author: Brian Zerangue <brian.zerangue@gmail.com>