SAXONICA

Saxon Documentation
Full Contents
About Saxon
Changes in this Release
Notices
Using XSLT 2.0
Using XQuery
Handling Source Documents
XML Schema Processing
XPath API for Java
Saxon on .NET
Extensibility
Saxon Extensions
| Introduction
| EXSLT Extensions
| Extension attributes (XSLT only)
| Additional serialization parameters
» | Extension functions
| Extension instructions
Sample Saxon Applications
The Saxon SQL Extension
XSLT Elements
XPath 2.0 Expression Syntax
Function Library
Standards Conformance

# saxon:string-to-hexBinary()

saxon:string-to-hexBinary($in as xs:string, $encoding as xs:string) ==> xs:hexBinary

This function takes as input a string and the name of a character encoding (for example "UTF8"). It encodes the contents of the string value as a sequence of bytes using a particular encoding, and returns the `xs:hexBinary` representation of this sequence of bytes.

Next