Table wrongly shown in XML author view
Posted: Thu Nov 22, 2007 3:10 pm
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>
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>