Jump to content

Talk:OpenDocument technical specification

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Dasch (talk | contribs) at 09:57, 7 February 2006 (Format internals -> content.xml). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Format internals -> content.xml

This XML snippet seems rather weird:

<text:h text:style-name="Heading_2">This is a title</text:h>
<text:p text:style-name="Text_body"/>
<text:p text:style-name="Text_body">
   This is a paragraph. The formatting information is
   in the Text_body style. The empty text:p tag above
   is a blank paragraph (an empty line).
</text:p>

Since all the elements are in the namespace referred to by the text prefix, it is unnecessary to explicitly use the prefix on the attributes as well. Is this really how OpenOffice writes the XML files? This would be the simplest and most appropriate:

<text:h style-name="Heading_2">This is a title</text:h>
<text:p style-name="Text_body"/>
<text:p style-name="Text_body">
   This is a paragraph. The formatting information is
   in the Text_body style. The empty text:p tag above
   is a blank paragraph (an empty line).
</text:p>
  • update* - this goes for meta.xml as well.

Daniel Schierbeck 09:55, 7 February 2006 (UTC)[reply]