Skip to content

Instantly share code, notes, and snippets.

bzerangue / date-utility_RFC-to-ISO.xsl
Created April 1, 2009 13:30
RFC 2822 to ISO XSL Utility
View date-utility_RFC-to-ISO.xsl
<?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 / master.xsl
Created November 15, 2010 21:36
HTML5 Boilerplate XSLT Master Stylesheet, see
View master.xsl
<?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,
<xsl:stylesheet version="1.0"
bzerangue / yahoo-weather-condition-codes.xml
Created February 1, 2011 06:53
Yahoo Weather Condition Codes
View yahoo-weather-condition-codes.xml
<?xml version="1.0" encoding="UTF-8"?>
<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 / google-weather-api-conditions.xml
Created February 1, 2011 23:13
Google Weather API Conditions List
View google-weather-api-conditions.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--Google Weather API Conditions. Compiled by Dennis Delimarsky,>
<!--Tweaked by Brian Zerangue, February 1, 2011-->
<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 / facebook-like-utility.xsl
Last active January 10, 2020 13:51
[XSLT] Facebook Like XSLT Utility
View facebook-like-utility.xsl
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl=""
exclude-result-prefixes="fb og"
Name: Facebook Like Utility
Version: 1.0.1
bzerangue / get-last-fm-recent-tracks.xsl
Created February 22, 2011 06:50 Recent Tracks by User
View get-last-fm-recent-tracks.xsl
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version='1.0' xmlns:xsl=''>
Name: Recent Tracks by User
Version: 1.0
Author: Brian Zerangue <>
REQUIRED PARAMETERS: api-key, username
bzerangue / rfc-date-to-iso-date.xsl
Created March 9, 2011 16:11
[XSLT] Convert RFC 2822 format to ISO date format
View rfc-date-to-iso-date.xsl
<?xml version="1.0" encoding="UTF-8" ?>
Name: RSS feed date format to Symphony date format
Version: 1.0
Author: Brian Zerangue <>
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 / canada-provinces.xml
Created May 21, 2011 19:32
Canada Provinces
View canada-provinces.xml
<?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 / 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)
View us-states.xml
<?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 / google-plus-one.xsl
Last active August 16, 2020 21:52
[XSLT] Google +1 XSL Utility
View google-plus-one.xsl
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0"
Name: Google +1 Utility
Version: 1.0.1
Author: Brian Zerangue <>