Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
この XPath 式:
for $n in 1 to 5 return $n
戻り値
1 2 3 4 5
アルファベット文字で同様のことを行うことは可能ですか?
はい:
for $n in 65 to 70 return fn:codepoints-to-string($n)
戻り値:
A B C D E
少なくとも ascii/iso-8859-1 では。
for $n in fn:string-to-codepoints('A') to fn:string-to-codepoints('E') return fn:codepoints-to-string($n)
どのロケールでも動作するはずです。