Skip to content

Instantly share code, notes, and snippets.

@bzerangue
bzerangue / date-utility_RFC-to-ISO.xsl
Created Apr 1, 2009
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
bzerangue / master.xsl
Created Nov 15, 2010
HTML5 Boilerplate XSLT Master Stylesheet, see html5boilerplate.com
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, http://html5boilerplate.com
-->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
View yahoo-weather-condition-codes.xml
<?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 Feb 1, 2011
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, 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 Jan 10, 2020
[XSLT] Facebook Like XSLT Utility
View facebook-like-utility.xsl
<?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 Feb 22, 2011
Last.fm 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='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 Mar 9, 2011
[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 <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)
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
bzerangue / us-states.xml
Created May 21, 2011
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
bzerangue / google-plus-one.xsl
Last active Aug 16, 2020
[XSLT] Google +1 XSL Utility
View google-plus-one.xsl
<?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>