转换案例 - 变形金刚? [英] Converting Case - Umlauts?

查看:84
本文介绍了转换案例 - 变形金刚?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用以下内容将大写转换为小写:


translate($ queryString,''ABCDE ...'',''abcde ...'')


但我如何转换变音符号的情况? ???等等

I use the following to convert uppercase to lowercase:

translate($queryString, ''ABCDE...'', ''abcde...'')

But how can i convert the case for umlauts? ??? etc

推荐答案

queryString,''ABCDE ...'',''abcde ...'')


但我如何转换变音符号的情况? ???等

queryString, ''ABCDE...'', ''abcde...'')

But how can i convert the case for umlauts? ??? etc




jo********@gmail.com 写道:


jo********@gmail.com wrote:
我使用以下内容将大写转换为小写:

翻译(
I use the following to convert uppercase to lowercase:

translate(


queryString,''ABCDE ...'',''abcde ...'')

但我如何转换变音符号的情况? ???等等
queryString, ''ABCDE...'', ''abcde...'')

But how can i convert the case for umlauts? ??? etc




几乎相同,翻译的第二个参数中的每个字符

被第三个中相同索引处的字符替换参数如此

您只需要确保您拥有所关注的所有字符

大写作为第二个参数并且相同的字符在同一个

命令作为第三个参数,例如全局变量


< xsl:variable

name =" iso88591UpperCaseLetters"

select ="ABCDEFGHIJKLMNOPQRSTUVWXYZàá???? ?? EEE?II? d OO ???×UU UY"????; />

< xsl:variable

name =" iso88591LowerCaseLetters"

select ="abcdefghijklmnopqrstuvwxyzàáa?????èéê?二?? ÈOO ???×UU UY"????; />


然后使用例如


translate(



Pretty much the same, each character in the second argument to translate
is replaced by the character at the same index in the third argument so
you simply need to make sure you have all characters you care about in
upper case as the second argument and the same characters in the same
order as the third argument e.g. global variables

<xsl:variable
name="iso88591UpperCaseLetters"
select="ABCDEFGHIJKLMNOPQRSTUVWXYZàá??????èéê?ìí?? D?òó???×?ùú?üY" />
<xsl:variable
name="iso88591LowerCaseLetters"
select="abcdefghijklmnopqrstuvwxyzàáa?????èéê?ìí?? e?òó???×?ùú?üy" />

then use e.g.

translate(


这篇关于转换案例 - 变形金刚?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆