|
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl" xml:space="default">
<xsl:output method="text" indent="no"/>
<xsl:template match="tbody">
<xsl:apply-templates select="tr">
<xsl:sort select="td[4]"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="tr">_currencies[<xsl:apply-templates select="td[4]" />] = new CurrencyTableEntry("<xsl:apply-templates select="td[2]" />", "<xsl:apply-templates select="td[3]" />", <xsl:apply-templates select="td[4]" />, lookupString("<xsl:apply-templates select="td[3]" />", symbolLookup));
</xsl:template>
<xsl:template match="td" xml:space="default"><xsl:value-of select="normalize-space(node())" /></xsl:template>
</xsl:stylesheet>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I'm a software engineer with 25 years of experience in areas from game and simulation development, enterprise development, systems management, machine learning, real-time and embedded systems development and geospaitial systems development.
You can find more of my work at http://www.codeplex.com and my articles at http://vectordotnet.blogspot.com/ and http://dotnoted.spaces.live.com.