Name |
Description |
FN: string (ARG) |
Returns the string value of the parameter. Parameters can be numbers, logical values, or node sets. For example, string (314) Result: "314" |
FN: codepoints-to-string (INT, Int ,...) |
Returns a string based on the Code Point sequence. Example: codepoints-to-string (84,104,233,114,232,115,101) Result: 'thérè se' |
FN: String-to-codepoints (string) |
Returns the Code Point Sequence Based on the string. Example: String-to-codepoints ("Thé rè se ") Result: 84,104,233,114,232,115,101 |
FN: codepoint-equal (comp1, comp2) |
Based on Unicode code, if the value of comp1 is equal to the value of comp2, true is returned. (Http://www.w3.org/2005/02/xpath-functions/collation/codepoint), otherwise false is returned. |
- FN: Compare (comp1, comp2)
- FN: Compare (comp1, comp2, collation)
|
If comp1 is smaller than comp2,-1 is returned. If comp1 is equal to comp2, 0 is returned. If comp1 is greater than comp2, 1 is returned. (Based on the rules used ). Example: Compare ('ghi', 'ghi ') Result: 0 |
FN: Concat (string, String ,...) |
Returns the concatenation of strings. Example: Concat ('xpath ', 'ais', 'fun! ') Result: 'xpath is fun! ' |
FN: String-join (string, String,...), SEP) |
Use the SEP parameter as the separator to return the string after the string parameter is spliced. Example: String-join ('we', 'all', 'having ', 'fun! '),'') Result: 'We are having fun! ' Example: String-join ('we', 'all', 'having ', 'fun! ')) Result: 'wearehavingfun! ' Example: String-join (), 'sept ') Result :'' |
- FN: substring (string, start, Len)
- FN: substring (string, start)
|
Returns a substring of the specified length starting from the start position. The subscript of the first character is 1. If the Len parameter is omitted, the substring from the position start to the end of the string is returned. Example: substring ('Beatles) Result: 'beat' Example: substring ('Beatles ', 2) Result: 'eates' |
FN: String-length (string) FN: String-length () |
Returns the length of the specified string. If the string parameter is not set, the length of the string value of the current node is returned. Example: String-length ('Beatles ') Result: 7 |
- FN: normalize-space (string)
- FN: normalize-space ()
|
Delete the white spaces at the beginning and end of the specified string, replace all the white spaces in the string with one, and return the result. If the string parameter is not specified, the current node is processed. Example: normalize-space ('the xml ') Result: 'The xml' |
- FN: normalize-Unicode ()
- FN: upper-case (string)
|
Converts string to uppercase. Example: upper-case ('the xml ') Result: 'The xml' |
FN: lower-case (string) |
Converts string to lowercase. Example: lower-case ('the xml ') Result: 'The xml' |
FN: translate (string1, string2, string3) |
Replace string2 in string1 with string3. Example: translate ('12: 30', '30', '45 ') Result: '12: 45' Example: translate ('12: 30', '03', '54 ') Result: '12: 45' Example: translate ('12: 30', '123', 'abcd ') Result: 'bc: da' |
FN: escape-Uri (stringuri, ESC-res) |
Example: escape-Uri ("http://example.com/test#car", true ()) Result: "HTTP % 3A % 2f % 2fexample.com % 2 ftest # Car" Example: escape-Uri ("http://example.com/test#car", false ()) Result: "http://example.com/test#car" Example: escape-Uri ("http://example.com /~ Bé ", false ()) Result: "http://example.com /~ B % C3 % a9b % C3 % A9" |
FN: Contains (string1, string2) |
If string1 contains string2, true is returned; otherwise, false is returned. Example: Contains ('xml', 'xm ') Result: True. |
FN: starts-with (string1, string2) |
If string1 starts with string2, true is returned; otherwise, false is returned. Example: starts-with ('xml', 'x ') Result: True. |
FN: ends-with (string1, string2) |
If string1 ends with string2, true is returned; otherwise, false is returned. Example: ends-with ('xml', 'x ') Result: false. |
FN: substring-before (string1, string2) |
Returns the substring before string2 appears in string1. Example: substring-before ('20140901 ','/') Result: '12' |
FN: substring-after (string1, string2) |
Returns the substring after string2 appears in string1. Example: substring-after ('20140901 ','/') Result: '10' |
FN: matches (string, pattern) |
If the string parameter matches the specified mode, true is returned; otherwise, false is returned. Example: matches ("Merano", "ran ") Result: True. |
FN: Replace (string, pattern, replace) |
Replace the specified mode with the replace parameter and return the result. Example: Replace ("bella Italia", "L ","*") Result: 'Be ** A ita *' Example: Replace ("bella Italia", "L ","") Result: 'bea itaa' |
FN: tokenize (string, pattern) |
Example: tokenize ("XPath is fun", "/S + ") Result: ("XPath", "is", "fun ") |