This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <xsl:variable name="currency-mapper"> | |
| <currency code="USD">$</currency> | |
| <currency code="EUR"><![CDATA[€]]></currency> | |
| <currency code="YEN"><![CDATA[¥]]></currency> | |
| <currency code="GBP"><![CDATA[£]]></currency> | |
| </xsl:variable> | |
| <xsl:variable name="currency-symbols" select="msxml:node-set($currency-mapper)" /> | |
| <xsl:template match="@currency" mode="symbol"> | |
| <xsl:variable name="symbol" select="$currency-symbols/currency[@code = current()]" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8" ?> | |
| <xsl:stylesheet | |
| version="1.0" | |
| xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
| xmlns:umb="urn:umbraco.library" | |
| exclude-result-prefixes="umb" | |
| > | |
| <xsl:output method="xml" indent="yes" omit-xml-declaration="yes" /> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <xsl:variable name="xml"> | |
| <nodes> | |
| <xsl:for-each select="$currentPage/../*[@isDoc]"> | |
| <xsl:sort select="contentDate" data-type="text" order="descending" /> | |
| <node header="{contentHeader}"> | |
| <xsl:value-of select="@id" /> | |
| </node> | |
| </xsl:for-each> | |
| </nodes> | |
| </xsl:variable> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Link --> | |
| <p class="goodness"> | |
| <a href="http://4815162342x.com/numbers" title="This is very mysterious…"> | |
| Today’s Mystery Link — Make sure you’re ready! | |
| </a> | |
| </p> | |
| <!-- Video --> | |
| <video class="sublime" width="400" height="300" poster="pimpcast.png" preload="none"> | |
| <source src="TextMate-XSLT.mp4" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]> | |
| <xsl:stylesheet | |
| version="1.0" | |
| xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
| xmlns:msxml="urn:schemas-microsoft-com:xslt" | |
| xmlns:umbraco.library="urn:umbraco.library" | |
| exclude-result-prefixes="msxml umbraco.library"> | |
| <xsl:output method="xml" omit-xml-declaration="yes"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]> | |
| <xsl:stylesheet | |
| version="1.0" | |
| xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
| xmlns:msxml="urn:schemas-microsoft-com:xslt" | |
| xmlns:umbraco.library="urn:umbraco.library" | |
| exclude-result-prefixes="msxml umbraco.library"> | |
| <xsl:output method="xml" omit-xml-declaration="yes"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <xsl:template match="/"> | |
| <h2><xsl:value-of select="umbraco.library:GetDictionaryItem('SearchTitle')" /></h2> | |
| <!-- do stuff --> | |
| </xsl:template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <xsl:stylesheet ... > | |
| <!-- All media goes through here --> | |
| <xsl:template match="*" mode="media"> | |
| <xsl:variable name="mediaNode" select="umbraco.library:GetMedia(., false())" /> | |
| <xsl:apply-templates select="$mediaNode[not(error)]" mode="media" /> | |
| </xsl:template> | |
| <!-- Image file --> | |
| <xsl:template match="Image" mode="media"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <xsl:template match="snippet//@*[name() = substring-after(../@hi:lite, '@')]"> | |
| <xsl:text> </xsl:text> | |
| <span class="hilite attr"> | |
| <xsl:value-of select="concat(name(), '="', ., '"')" /> | |
| </span> | |
| </xsl:template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8" ?> | |
| <xsl:stylesheet | |
| version="1.0" | |
| xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
| xmlns:umb="urn:umbraco.library" | |
| xmlns:make="urn:schemas-microsoft-com:xslt" | |
| xmlns:math="urn:Exslt.ExsltMath" | |
| exclude-result-prefixes="umb math make" | |
| > |