Hide Forgot
Description of problem: Topic ID 24324 contains a table that is incorrect and should break the XML. The CCMS UI seems to think it is well formed. The problem is that the table has three columns but only two are defined: <tgroup align="left" cols="2" colsep="1" rowsep="1"> <colspec colname="c1"/> <colspec colname="c2"/> The correct XML should look like this: <tgroup align="left" cols="3" colsep="1" rowsep="1"> <colspec colname="c1"/> <colspec colname="c2"/> <colspec colname="c3"/> The former will break if used in an offline editor and then validated by publican.
Created attachment 819442 [details] Invalid Table Data Attached what error appears when table XML is copied to an offline publican book and publican build is run.
Fixed in 1.3-SNAPSHOT build 201311061544 Example output: topic.xml:0: element table: validity error : cols declaration doesn't match the number of entry elements Note: Currently the line number just refers to the start of the topic instead of the actual table line number. We can get the line number but it requires extra processing, so I need to do some tests to see if the extra processing take up too many resources, since the validation needs to be as fast as possible. Note 2: This version is currently only deployed on the test/development server.
Updated the validation to include the linenumber in the error output in build 201311071437. This version is now live on the dev/test server.
*** Bug 995952 has been marked as a duplicate of this bug. ***
I tested various combinations of mismatched <colspec> elements, <entry> elements and @cols attribute values. The only case that breaks publican is more <entry>s than @cols, and this is now reflected in the xml validation errors.