Page 1 of 1

lcMatching2 sample does not validate

Posted: Wed Mar 08, 2017 5:41 pm
by expatriate
I've had some difficulties writing a DITA 1.3 Learning and Training "Matching" question.

The syntax of lcMatching2 isn't exactly easy to begin with, so I tried using the OASIS sample at http://docs.oasis-open.org/dita/dita/v1 ... hing2.html as a model. Using the latest oXygen it doesn't validate, with the following message: "The number of cells in the row (2) is less than the number of columns detected from the table structure (3)".

The message looks fair enough to me, and there are certainly typos in other OASIS L&T samples. Is this one correct, or is oXygen's error message?

Cheers, Pat

Re: lcMatching2 sample does not validate

Posted: Thu Mar 09, 2017 10:07 am
by Radu
Hi Pat,

Good question. We are not very familiar with learning elements.
The <lcMatchTable2> is derived from a simpletable so Oxygen has a special table validation checker which tries to validate it is a table.
In this case the validation complains that the header <lcMatchingHeader2> has two cells while each <lcMatchingPair2> row has 3 cells.
At the same time the <lcMatchingHeader2> does not seem to allow more than two items inside according to the specs.
So according to the specs the example looks properly constructed, meaning that probably the Oxygen table checker should no longer issue any error in this case. I will add an internal issue about this and see what we can do.

Regards,
Radu

Re: lcMatching2 sample does not validate

Posted: Mon Oct 02, 2017 2:53 pm
by Radu
Hi,

We released Oxygen 19.1 a couple of days ago and it should no longer report any error in the situation you described above.

Regards,
Radu