|
<?xml version='1.0'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output encoding="utf-8" omit-xml-declaration="yes"/>
<xsl:param name="lang" select="'en'"/>
<xsl:param name="localeUrl" select="'Resources.resx'"/>
<xsl:variable name="localeXml" select="document($localeUrl)/*" />
<xsl:param name="NumberFormat" select="$localeXml/data[@name='NumberFormat']/value/text()"/>
<xsl:param name="NumberCaption" select="$localeXml/data[@name='NumberCaption']/value/text()"/>
<xsl:variable name="tmx" select="document('tmx.xml')/tmx/body"/>
<xsl:param name="NumberFormat2" select="$tmx/tu[@tuid='NumberFormat']/tuv[lang($lang)]/seg"/>
<xsl:param name="NumberCaption2" select="$tmx/tu[@tuid='NumberCaption']/tuv[lang($lang)]/seg"/>
<xsl:decimal-format name="en" grouping-separator="," decimal-separator="." />
<xsl:decimal-format name="es" grouping-separator="." decimal-separator="," />
<xsl:decimal-format name="fr" grouping-separator=" " decimal-separator="," />
<xsl:template match="/root">
<xsl:value-of select="$NumberCaption"/>
<xsl:value-of select="' '"/>
<xsl:value-of select="format-number(Number, $NumberFormat, $lang)"/>
</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.
A sr. principal software engineer experienced in software engineering and architecture, UI design, and team leadership. Skills include RESTful Web Services, AWS, node.js, internationalization, C#, Angular, TypeScript, regular expressions, XSLT, ASP.NET, and SQL. Served for many years on OASIS technical committees such as XML Localization Interchange File Format (XLIFF) and Open Architecture for XML Authoring and Localization (OAXAL). Bachelor's degree in computer science and mathematics from Gordon College in Wenham, MA.