Skip to content

Instantly share code, notes, and snippets.

<?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/generic/string-replace.xsl" />
<xsl:strip-space elements="* | @*"/>
<!--
<xsl:template match="body//*">
<xsl:element name="{name()}">
<xsl:apply-templates select="* | @* | text()"/>
</xsl:element>
</xsl:template>
<xsl:template match="body//@*">
<xsl:attribute name="{name(.)}">
<xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>
</xsl:attribute>
/*
Collapse Sectionfields for Symphony CMS
1.1 Modified by Dale Tan <[email protected]>
- Rewrote methods in private, anonymous function
- Allows for "toggling" when in "collapsed" view
1.0.1 Modified by Stephen Bau <[email protected]>
- Remove jQuery for Symphony 2.0.3+. jQuery.noConflict mode. Fix margins CSS.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:variable name="entry" />
<xsl:template match="navigation">
<xsl:param name="area" />
<ul class="clear">
<xsl:attribute name="id">
<xsl:choose>
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" />
<xsl:variable name="lowercase" select="'abcdefghijklmnopqrstuvwxyz'" />
<!--
Description:
This is a date formatting utility for Twitter feeds, modified from the original date-time.xsl file. The named template "twitter-format-date" takes 2 parameters: