Table wrongly shown in XML author view
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 2
- Joined: Thu Nov 22, 2007 3:01 pm
- Location: Japan
Table wrongly shown in XML author view
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>
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post 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
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
-
- Posts: 9439
- Joined: Fri Jul 09, 2004 5:18 pm
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
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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service