Document toolboxDocument toolbox

Appenmdix F - The BIDXML format

The BIDXML format is used to transfer XML documents to be signed as both XML and XSL in one file between BankID Server (both Java and C) and the Web-client.
Its format is as follows:
<BankIDXML>
<BIDXML>xmlDocument</BIDXML><BIDXSL>xslDocument</BIDXSL>
</BankIDXML>

The XML structure is then signed as plain text. The signXML method does NOT validate thexml data (well-formedness).

Parameter

Type

Description

xmlDocument

String

The xml data to sign.

xslDocument

String

The xsl data to sign.

Table 21 – BIDXML parameter description

Please note that both the Client proxy and the Web-client treat BIDXML documents as ISO-Latin-1 and XML-documents originally using other encodings may lead to problems with producing a proper HTML representation. This means that BankID Server and Client proxy will disregard the preamble of the document header:
<?xml version="1.0" encoding="iso-8859-1" ?>
Also note that experience have shown that the corresponding XSL-file must have a header that specifies the output method and output encoding as shown in bold below:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" encoding="ISO-8859-1" doctype-system="http://www.w3.org/TR/html4/loose.dtd" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" indent="yes" />