Talk:OpenDocument technical specification
Appearance
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.