odb ODF standard conformance [was: minutes of ESC call ...]

Lionel Elie Mamane lionel at mamane.lu
Fri Dec 20 06:51:32 PST 2013


On Fri, Dec 20, 2013 at 03:09:04PM +0100, Miklos Vajna wrote:

> On Fri, Dec 20, 2013 at 02:40:18PM +0100, Lionel Elie Mamane <lionel at mamane.lu> wrote:

>> 2) ooo103006-1.odb/reports/Obj131/content.xml[2,6115]:  Error: element
>>    "form:hidden" is missing "id" attribute

>>    This one probably just needs an ID generated. Shall we just call
>>    something like BASE64ENCODE(RANDOM(give me 9 bytes))? Or is there a
>>    more structured system in LibreOffice?

> Random is probably the worst method you can think about.

Why? What properties do you want from these IDs? Only that they are
unique within the XML document, right?

> Can't you just use an integer id, starting from 0?

This assumes a "per-document" global" state counter to remember the
last used ID... Doable.

-- 
Lionel


More information about the LibreOffice mailing list