Page 1 of 1

Table wrongly shown in XML author view

Posted: Thu Nov 22, 2007 3:10 pm
by amasino
With slightly different version of the same document, Oxygen XML version 9 shows tables with all columns collapsed in only one column ocuppying the whole window.

The difference between both document is just one new line between two elements in the table:

Table 1:Correctly shown

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title/>
</head>
<body>
<table frame="void"><caption>This is the caption of the first table</caption><thead><tr><th>Header 1</th><th>Header 2</th><th>Header 3</th><th>Header 4</th><th>Header 5</th></tr></thead><tbody><tr><td/><td/><td/><td/><td/></tr><tr><td/><td/><td/><td/><td/></tr><tr><td/><td/><td/><td/><td/></tr></tbody></table>
<table frame="void"><caption>Another table</caption><thead><tr><th>Header 1</th><th>Header 2</th></tr></thead><tbody><tr><td/><td/></tr><tr><td/><td/></tr><tr><td/><td/></tr></tbody></table>
</body>
</html>

Table 2:Shown incorrectly (just one new line between the table and caption elements)

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title/>
</head>
<body>
<table frame="void">
<caption>This is the caption of the first table</caption><thead><tr><th>Header 1</th><th>Header 2</th><th>Header 3</th><th>Header 4</th><th>Header 5</th></tr></thead><tbody><tr><td/><td/><td/><td/><td/></tr><tr><td/><td/><td/><td/><td/></tr><tr><td/><td/><td/><td/><td/></tr></tbody></table>
<table frame="void">
<caption>Another table</caption><thead><tr><th>Header 1</th><th>Header 2</th></tr></thead><tbody><tr><td/><td/></tr><tr><td/><td/></tr><tr><td/><td/></tr></tbody></table>
</body>
</html>

Posted: Mon Nov 26, 2007 6:47 pm
by sorin_ristache
Hello,

I cannot reproduce the broken layout problem with the CSS stylesheet included in the predefined XHTML document type. Please send us your oXygen preferences located in the folder [user-home-folder]/Application Data/com.oxygenxml (on Windows) / [user-home-folder]/Library/Preferences/com.oxygenxml (on Mac OS X). If you modified the predefined CSS stylesheet or you set other CSS stylesheet in your XML document using the xml-stylesheet processing instruction please send your CSS stylesheet too.


Regards,
Sorin

Posted: Wed Nov 28, 2007 12:17 pm
by Radu
Dear Alejandro,

We finally found out the real problem.
You have disabled the Oxygen default catalogs in your preferences.
In the "Options->Preferences" "XML->XML Catalog page" there is a "Use default catalog" checkbox.
In your case it is disabled.
This means the XHTML 1.1 DTD you are using is no longer resolved to the Oxygen frameworks but it is downloaded every time from "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" along
with the imported modules.
The real problem is that the XHTML 1.1 DTD "xhtml11.dtd" from the Web refers at a certain point a module "http://www.w3.org/MarkUp/DTD/xhtml-attribs-1.mod" which specifies the "xml:space" attribute
as a default attribute with the value "preserve" for all XHTML elements.
Because of this, when passing to Author page the content is no longer normalized and there are white spaces between table rows and the table cannot be constructed.
The DTD on the Web is a working draft so things like this can happen.
We'll contact W3C to rectify this problem but in the meantime we recommend that you reactivate the default catalog support in Oxygen.

Regards,
Radu