December 25, 1960 in German
File: Data.xml
File: Transform.xslt
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xsl:output method="text"/>
<xsl:template match="/">
<xsl:text>December 25, 1960 in German: </xsl:text>
<xsl:value-of select="format-date(xs:date('1960-12-25'), '[D] [MNn,3-3] [Y0001]', 'de', 'AD', 'DE')"/>
</xsl:template>
</xsl:stylesheet>
Output:
December 25, 1960 in German: 25 Dez 1960
Related examples in the same category