Re: Extra attributes in content.xml dropped

Joerg Sievers <[email protected]> Mon, 27 Jun 2005 08:47:26 +0200
Newsgroups gmane.comp.openoffice.devel.xml
Organization Sun Microsystems GmbH
Message-ID <[email protected]>
Hi Graeme!

Graeme Pyle schrieb:

> I'd like to add extra XML attributes to some of the elements in the 
> content.xml file (in a seperate namespace), but I find that if I do so 
> and then open+save the doc in OpenOffice, my additional attributes are 
> lost.

It is possible to do that. If you want to have a look at the test 
documents and test cases.

OOo XML (*.sx*)

WRITER:
Tetscase: tfiscus
http://qa.openoffice.org/source/browse/qa/qatesttool/xml/level1/inc/sxw7_01.inc

Files:
http://qa.openoffice.org/source/browse/qa/qatesttool/xml/level1/input/writer/fiscus.sxw
http://qa.openoffice.org/source/browse/qa/qatesttool/xml/level1/input/writer/fiscus2.sxw

CALC:
Testcase: tAlienAttributes
http://qa.openoffice.org/source/browse/qa/qatesttool/xml/level1/inc/sxc7_01.inc

File:
http://qa.openoffice.org/source/browse/qa/qatesttool/xml/level1/input/calc/ooo10/alien_attributes.sxc

GRAPHICS (DRAW / IMPRESS):

Testcases:

(Draw) talien_attributes
http://qa.openoffice.org/source/browse/qa/qatesttool/xml/level1/inc/sxd7_01.inc

(Impress) talien_attributes
http://qa.openoffice.org/source/browse/qa/qatesttool/xml/level1/inc/sxi7_01.inc

Files:
http://qa.openoffice.org/source/browse/qa/qatesttool/xml/level1/input/graphics/ooo10/alien.sxd
http://qa.openoffice.org/source/browse/qa/qatesttool/xml/level1/input/graphics/ooo10/alien.sxi

OASIS OpenDocument Format (*.od*) - Testcases in progress, will be there 
soon:

Graphics
Testcase (the onliest in CVS - at the moment):
http://qa.openoffice.org/source/browse/qa/qatesttool/xml/update/oasis_graphics_update.bas
File:
http://qa.openoffice.org/source/browse/qa/qatesttool/xml/update/input/graphics/alien_attributes/alien_attributes_presentation.odp

Hope it helps,
Jogi

-- 
===============================================================
Sun Microsystems GmbH           Joerg Sievers
20097 Hamburg                   Quality Assurance Engineer