Page 1 of 1

FOP Extensions and FO Validating

Posted: Mon Jan 10, 2011 6:16 pm
by Briotti
Hi all, I'm working with Oxygen 11.1 and I was able a external FO processor based on the built-in FOP libraries and the extension library in order to manage FOP Extension such fox:external-document and so on.

The problem is that in the editor page the FO validation is not passed due to the fox:external-document unrecognized element. This is not a great problem indeed, but can be useful to add this element to fo.xsd.

It is possible to do this in a simple way or I must edit the xsd.fo placed in the Oxygen installation directory under frameworks\fo\xsd ?

TIA

Giuseppe

Re: FOP Extensions and FO Validating

Posted: Fri Jan 14, 2011 6:08 pm
by Radu
Dear Giuseppe,

Sorry for the delay.
Unfortunately the only way to do this would be to modify the OXYGEN_INSTALL_DIR/fo/xsd/fo.xsd.
Apache FOP does not have the functionality to validate a FO file so Oxygen uses XML Schema to check it for errors.

Regards,
Radu

Re: FOP Extensions and FO Validating

Posted: Sat Jan 15, 2011 2:43 pm
by Briotti
Thanks Radu. I will do it.

I will keep a backup copy of the original fo.xsd.

By the way, do you think that there is a config file to say to oxygen wich xsd must be used for grammar checking?

Re: FOP Extensions and FO Validating

Posted: Mon Jan 17, 2011 10:28 am
by Radu
Hi,

There is an XML catalog:
OXYGEN_INSTALL_DIR/frameworks/fo/xsd/catalog.xml
which maps the system ID:
http://www.w3.org/1999/XSL/Format/xsd/fo.xsd
to the fo.xsd XML Schema located in the same directory.

In the Oxygen Preferences->Document Type Association page the FO document type links to that catalog file.

Regards,
Radu

Re: FOP Extensions and FO Validating

Posted: Tue Jan 18, 2011 3:26 pm
by Briotti
Great!

Thank you