I'm trying to concatenate two strings containing Hebrew character in XSLT/XPATH (NOT XSL-FO), however, when I try "concat(string A, String B), the output I'm getting is String B + String A.
I guess this is probably because of the fact that Hebrew characters have a right to left direction. However, what can I do in order to get String A + String B in the output? The output file I need to produce is a text file (neither XML nor HTML).
Any help would be appreciated. Thanks!
Update: Here is an example:
example: יוסף בניון
then concat(stringA,stringB) gets me this: יוסףבניון instead of בניוןיוסף
Also, there's no guarantee that stringA and stringB will always contain Hebrew characters, so concat(stringB, stringA) would not work for me.
答案 0 :(得分:1)
<stringA>יוסף</stringA> <stringB>בניון</stringB>
然后
concat(stringA,stringB)
告诉我这个:
יוסףבניון
而不是
בניוןיוסף
的结果 正确结果:stringA
之前 stringB
。
因为字符是RTL,所以整个块从右到左显示(正如人们所期望的那样)。但是,基础字符串(以及生成的文本文件)中各个字符的顺序为:
י
ו
ס
ף
ב
נ
י
ו
ן
您可以通过查看文件的十六进制转储来验证这一点。