bin:pad-right

Returns a binary value created by padding $value on the right with $count occurrences of $octet.

pad-right($value as (xs:hexBinary | xs:base64Binary)?, $count as xs:integer, $octet as xs:unsignedByte?:=0) ➔ xs:base64Binary?

Arguments

 

$value

(xs:hexBinary | xs:base64Binary)?

Input binary data

 

$count

xs:integer

The number of octets to pad

 

$octet

xs:unsignedByte?

:= 0

Octet value to use in the padding

Result

xs:base64Binary?

Namespace

http://expath.org/ns/binary

Links to specifications

EXPath Binary Module 1.0

EXPath Binary Module 4.0

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.