Skip to content

Instantly share code, notes, and snippets.

@xpathr
xpathr / utility.xsl
Created May 10, 2012 14:42
XML to JSON by phoque
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exsl="http://exslt.org/common"
extension-element-prefixes="exsl">
<xsl:import href="../utilities/string-replace.xsl" />
<xsl:strip-space elements="*"/>
@xpathr
xpathr / utility.xsl
Created May 10, 2012 14:42
Xbox Live: Recently Played Games / Gamercard by MrBlank
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!--
Description:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Symphony utility - UNFINISHED CODE you'll have to work with this, but it's a start. It should get yolu 90% of the way. :-)
Xbox Live: Recently Played Games / Gamercard
@xpathr
xpathr / utility.xsl
Created May 10, 2012 14:42
Widon't XSLT by MrBlank
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!--
Name: Widon't
Version: 1.0
Author: Oleg Kurapov
URL: http://www.2sheds.ru/blog/2007/06/widont-in-xslt-dont-be-a-widow-maker/
Description:
@xpathr
xpathr / utility.xsl
Created May 10, 2012 14:42
Sitemap with Date Created by arsebandit
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!--
Sitemap page
Info
Version: 0.5
Date: 21-02-2011
Author: arse.bandit
@xpathr
xpathr / utility.xsl
Created May 10, 2012 14:42
RGBA to HEX String Conversion by wjnielsen
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template name="rbga-to-hex">
<xsl:param name="rgba-val"/>
<xsl:param name="count" select="1"/>
<xsl:variable name="val" select="substring-before($rgba-val,',')"/>
<xsl:variable name="tail" select="substring-after($rgba-val,concat($val,','))"/>
<xsl:choose>
@xpathr
xpathr / utility.xsl
Created May 10, 2012 14:42
RFC date to ISO date by bzerangue
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Name: RSS feed date format to Symphony date format
Version: 1.0
Author: Brian Zerangue <[email protected]>
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)
@xpathr
xpathr / utility.xsl
Created May 10, 2012 14:42
Resize Images by Nils
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!--
RESIZE IMAGES
by Nils Hörrmann, http://www.nilshoerrmann.de
Version 1.0.1, 22nd February 2010
# Example usage:
@xpathr
xpathr / utility.xsl
Created May 10, 2012 14:41
Recursive Navigation by kanduvisla
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!--
Recursive navigation
========================================================================
Version: 0.3
Date: 16-04-2011
Author: Giel Berkers
E-mail: [email protected]
@xpathr
xpathr / utility.xsl
Created May 10, 2012 14:41
reCaptcha Utility by wjnielsen
<?xml version="1.0" encoding="UTF-8"?>
<!--
About:
============
Author: Will Nielsen
Version: 1.0
Date: 23 October 2009
Email: [email protected]
Web: http://nielsendigital.com
@xpathr
xpathr / utility.xsl
Created May 10, 2012 14:41
Pluralize by phoque
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!--
Param "number" is required, all other params are optional.
If you don't give a "term" param, the util assumes that you mean 'Element'.
If you don't give a "term-plural" param, the util assumes that it will only have to append an 's'
If you don't give a "term-none" param, the util assumes that it will be the same as term-plural