FOP Extensions and FO Validating

Here should go questions about transforming XML with XSLT and FOP.
Briotti
Posts: 16
Joined: Mon Jan 10, 2011 6:02 pm

FOP Extensions and FO Validating

Post 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
Radu
Posts: 9443
Joined: Fri Jul 09, 2004 5:18 pm

Re: FOP Extensions and FO Validating

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Briotti
Posts: 16
Joined: Mon Jan 10, 2011 6:02 pm

Re: FOP Extensions and FO Validating

Post 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?
Radu
Posts: 9443
Joined: Fri Jul 09, 2004 5:18 pm

Re: FOP Extensions and FO Validating

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Briotti
Posts: 16
Joined: Mon Jan 10, 2011 6:02 pm

Re: FOP Extensions and FO Validating

Post by Briotti »

Great!

Thank you
Post Reply