To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=80679
Issue #|80679
Summary|Error in xhtml export (over H1 - H6 generation, i.e. H
|7)
Component|xml
Version|OOo 2.2.1
Platform|All
URL|
OS/Version|All
Status|UNCONFIRMED
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|code
Assigned to|sus
Reported by|strata
------- Additional comments from [EMAIL PROTECTED] Tue Aug 14 17:18:58 +0000
2007 -------
Hi Everyone and nice summer holidays,
sometimes I export my italian curriculum vitae (my resume) from odt to
xhtml format (and pdf too) to publish it on my personal web site.
I use to reformat (beautify) the code with Eclipse (3.2.2 + JST + WST
plugins) editor and so I note some warnings ("Unknown tag (h7).") in
OpenOffice xhtml file generation (H7 header generation).
The 7.5.5 paragraph ("Headings: The H1, H2, H3, H4, H5, H6 elements") in
the "html 4.01 specification document" limit heading elements to six levels.
The xhtml browser rendering (Firefox 2.0.0.x, Konqueror 3.5.7, Internet
Explorer 7) of the generated xhtml document appear fine only correcting
H7 tag (open and close tags) with H6 ones.
I don't know if the xml (re)definition of html (i.e. xhtml) removes this
limit (I haven't seen the dtd yet,
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"). Look forward: Bernd Eilers
check this and the dtd also limit headers till H6.
I have seen behaviour both using OOo 2.2.0 and 2.2.1 (on OpenSuSE 10.2,
OpenSuSE build service build, and on Windows XP, official
it.openoffice.org build).
After having pointed out (reported) this to the mailing list, I was approved to
create this issue.
Thanks,
Carlo
p.s. If the odt document is useful, I have no problem to provide it.
[EMAIL PROTECTED] kindly answer to me in the "[EMAIL PROTECTED]" mailing
list:
Well the document created states it is using the following DTD
in it´s Document Declaration:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
that DTD in turn specifies
<!ENTITY % heading "h1|h2|h3|h4|h5|h6">
but does not specify anything like h7, h8, ...
I can confirm that an export with an current OpenOffice.org version will create
<h7> etc. elements when something like heading7 has been used and that any XML
Validator trying to validate such exported file will burp on that and show an
error like:
This file is invalid.
Unexpected element h7
The error is in the <xsl:template name="create-heading"> and <xsl:template
name="write-heading-number"> methods
in the share/xslt/export/xhtml/body.xsl file of the OpenOffice.org installation
where everything with an @text:level > 6 must be handled special but isn´t yet.
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]