Page 1 of 1

CALS Table Editor use in other schema

Posted: Wed Feb 23, 2011 1:15 pm
by goul
I hope this is the correct forum for this type of question, if not please point me in the right direction.

We have developed a schema for our client that includes the CALS table model.

I've seen the documentation on pages like : http://www.oxygenxml.com/doc/ug-oxygen/ ... vider.html - but I read this as the way we could create our own table editor.

What we would like to do is to re-use the excellent docbook CALs table editor you have already created, but in the context of our own schema. I'm sure I'm missing something obvious, but I've not spotted how to do this so far.

Regards,
Goul

Re: CALS Table Editor use in other schema

Posted: Wed Feb 23, 2011 1:57 pm
by Radu
Dear Goul,

In order for Oxygen to recognize your table as CALS you need to write some Java extensions.

So you will need to create a new document type in the Preferences->Document Type Association page which associates your type of XML files with the catalogs, CSS files and Java extensions needed to edit the XML file.

Please see the Author SDK:
http://www.oxygenxml.com/developer.html ... horing_SDK

The downloaded SDK also contains the source Java files from the Docbook framework.
The CALS functionality is given by this implementation:
ro.sync.ecss.extensions.commons.table.support.CALSandHTMLTableCellInfoProvider which is returned by the createAuthorTableCellSpanProvider.DocBookExtensionsBundleBase.createAuthorTableCellSpanProvider() method.

Regards,
Radu

Re: CALS Table Editor use in other schema

Posted: Wed Feb 23, 2011 3:47 pm
by goul
Many many thanks for the speedy response - I will go and take a look.