-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: iso639 language code 'eng' should convert to country+language co…
…de 'en_GB' instead of 'en_EN'
- Loading branch information
1 parent
cdfdc04
commit 5775b26
Showing
3 changed files
with
33 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
19 changes: 19 additions & 0 deletions
19
src/main/configurations/bpel/Common/xsl/Alpha2ToCountryAndLanguageCode.xslt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<xsl:stylesheet exclude-result-prefixes="#all" version="3.0" | ||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
> | ||
<xsl:output method="text" version="1.0" encoding="UTF-8" indent="yes" omit-xml-declaration="yes" /> | ||
<xsl:mode on-no-match="deep-skip" on-multiple-match="fail" /> | ||
<xsl:strip-space elements="*"/> | ||
|
||
<xsl:param name="Alpha2" select="''" as="xs:string" /> | ||
<xsl:param name="Alpha3" select="''" as="xs:string" /> | ||
|
||
<xsl:template match="/"> | ||
<xsl:choose> | ||
<xsl:when test="$Alpha3 = 'eng'"><xsl:value-of select="'en_GB'" /></xsl:when> | ||
<xsl:otherwise><xsl:value-of select="concat(concat($Alpha2, '_'), upper-case($Alpha2))" /></xsl:otherwise> | ||
</xsl:choose> | ||
</xsl:template> | ||
</xsl:stylesheet> |
This file contains 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