Skip to content

Instantly share code, notes, and snippets.

@xpathr
xpathr / utility.xsl
Created May 10, 2012 14:41
Plaintext Paragraphs by jensscherbl
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!--
Example:
<xsl:call-template name="plaintext-paragraphs">
<xsl:with-param name="string" select="body"/>
</xsl:call-template>
@xpathr
xpathr / utility.xsl
Created May 10, 2012 14:41
Piwik Analytics by designermonkey
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!--
Piwik Analytics Tracking Utility
Options:
piwik-url - You will need to provide the url to your piwik instalation, followed by a /
page-not-url - Set True|False for named tracking instead of url in Piwik interface, defaults to False
page-name - Set the page name here, defaults to document.location. For a string, see example, otherwise javascript.
site-id - Set the ID of the site you are tracking, defaults to 1 (main site)
@xpathr
xpathr / utility.xsl
Created May 10, 2012 14:41
PagSeguro by jgfraga
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../utilities/string-replace.xsl"/>
<xsl:output method="xml" encoding="UTF-8" indent="yes" omit-xml-declaration="yes"/>
<!--
TO USE, CALL TEMPLATE LIKE SO...
<xsl:call-template name="pagseguro">
@xpathr
xpathr / utility.xsl
Created May 10, 2012 14:41
Number To Words by nickdunn
<?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" xmlns:math="http://exslt.org/math" extension-element-prefixes="exsl math">
<!--
Name: Number To Words
Version: 1.0
Author: Nick Dunn <nick@nick-dunn.co.uk>
URL: http://symphony-cms.com/downloads/xslt/file/20486/
Parameters:
@xpathr
xpathr / utility.xsl
Created May 10, 2012 14:41
nl2elements by bpierre
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!--
Example:
<xsl:call-template name="nl2elements">
<xsl:with-param name="string" select="body" />
<xsl:with-param name="element" select="'li'" />
</xsl:call-template>
@xpathr
xpathr / utility.xsl
Created May 10, 2012 14:41
nl2br by rainerborene
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!--
Example:
<xsl:call-template name="nl2br">
<xsl:with-param name="string" select="body"/>
</xsl:call-template>
-->
@xpathr
xpathr / utility.xsl
Created May 10, 2012 14:41
Multilevel Navigation by phoque
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="navigation">
<ul id="menu">
<xsl:apply-templates select="page">
<xsl:with-param name="path" select="$root" />
<xsl:with-param name="collapse" select="'yes'" />
</xsl:apply-templates>
<xsl:if test="/data/events/login-info/@logged-in = 'true'">
@xpathr
xpathr / utility.xsl
Created May 10, 2012 14:41
Members Forms by michael-e
<?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"
xmlns:members="http://michael-eichelsdoerfer.de/xslt/members"
extension-element-prefixes="exsl members">
<!-- Please download from GitHub! -->
</xsl:stylesheet>
@xpathr
xpathr / utility.xsl
Created May 10, 2012 14:41
Magical JIT Resizer by tmslnz
<?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" xmlns:dyn="http://exslt.org/dynamic" extension-element-prefixes="exsl dyn">
<!--
//////////////////////////// Magical Image Resize Utility
// /////////////// /// ============================
/// ///////////// ////
//// ///// ///// /////
///// /// /// //////
////// / / ///////
/////// ////////
@xpathr
xpathr / utility.xsl
Created May 10, 2012 14:41
Login form injection by phoque
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!--
It is very important that you are using <xsl:include /> instead of
<xsl:import /> to include this template, otherwise this util will not work!
Background: templates in an imported stylesheet will be overwritten by
templates in the current stylesheet while the ones being included will not.