Sha256: f83bf98eebf19a56f4185f4c171a26a11c428ed4ae1f8b6184813ce03608993b

Contents?: true

Size: 664 Bytes

Versions: 1

Compression:

Stored size: 664 Bytes

Contents

<?xml version='1.0' encoding='iso-8859-7'?>

<!--
gmosx: 
Localization templates
-->

<xsl:stylesheet
		xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
		version='1.0'>

	<xsl:template match='*[@xml:lang]'>
		<xsl:processing-instruction name='r'>if "<xsl:value-of select='@xml:lang'/>" == request.session.language</xsl:processing-instruction>
			<xsl:copy><xsl:apply-templates/></xsl:copy>
		<xsl:processing-instruction name='r'>end</xsl:processing-instruction>
	</xsl:template>

	<xsl:template match='l'>
		<xsl:apply-templates/>
		<xsl:processing-instruction name='r'>L["<xsl:apply-templates/>"]</xsl:processing-instruction>
	</xsl:template>

</xsl:stylesheet>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nitro-0.1.2 lib/xsl/localization.xsl