References: Xlet Type Developer's Guide (Xlet) Version R1.13
The DALP file format is described in the "Xlet Type Developer's GUIDE (Xlet)" shipped as part of the SDK/J development kit. The DALP format is a specific XML format, so the format is described as a DTD in this document.
Unfortunately, there has been some confusion (possibly even contributed by RiDP!) over where the product-id
element is according to this DTD, which has led to malformed DALP files. Since DALP files are not edited that often and, even more often, copied from existing projects into new projects, it is important to review these elements from time to time.
The DTD defines the product-id
element as a PC-DATA
child of the top-level dalp
element, with no child elements of its own. Thus, if the product-id
element is placed as a child in another element elsewhere (for example, the information
element) then this would, strictly speaking, be an illegal DALP file.
We have observed signing problems when the DALP file is malformed in this way. It is our advice that the DALP file conformed to the DTD as published by Ricoh in the documents referenced here.
An example of a partial DALP file that has the product-id
element correctly placed is shown here:
<?xml version="1.0" encoding="utf-8"?> <dalp spec="3.0" version= "1.0" href="ScanSample.dalp"> <product-id>1711276422</product-id> <information> <title>ScanSample</title> <vendor>Ricoh</vendor> <application-ver>1.14.00</application-ver> </information> [...]