bin:decode-string
Decodes a binary value as a string.
decode-string($value as (xs:hexBinary | xs:base64Binary)?, $encoding as xs:string?:=(), $offset as xs:integer?:=(), $size as xs:integer?:=()) ➔ xs:string?
Arguments | ||||
| $value | (xs:hexBinary | xs:base64Binary)? | Input binary data | |
| $encoding | xs:string? | := () | The encoding type to be used |
| $offset | xs:integer? | := () | Offset in octets into the input data |
| $size | xs:integer? | := () | Size in octets to operate over |
Result | xs:string? | |||
Namespace
http://expath.org/ns/binary
Links to specifications
Saxon availability
Available in XPath 2.0 and later versions. Implemented since Saxon 9.6. Requires Saxon-PE or Saxon-EE. Available for all platforms.
Notes on the Saxon implementation
Supported encodings are: UTF-8, UTF-16,
ISO-8859-1 and US-ASCII.