Validation errors in FO files
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 36
- Joined: Tue Feb 21, 2012 8:22 pm
- Location: Rotterdam, the Netherlands
- Contact:
Validation errors in FO files
Why do I get 5165 validation errors when I try to validate a DITA-OT generated FO file? I complains about the silliest of things that I know are allowed.
I tried it with a validation: "Use detected" and with schema: ${frameworks}/fo/xsd/fo.xsd
Is the schema correct?
Oxygen 14.1 on Linux CentOS 6.3
I tried it with a validation: "Use detected" and with schema: ${frameworks}/fo/xsd/fo.xsd
Is the schema correct?
Oxygen 14.1 on Linux CentOS 6.3
Kind Regards,
Reinier Kleipool,
Course Materials editor,
Open Source Academy
http://www.OpenSourceAcademy.eu
Reinier Kleipool,
Course Materials editor,
Open Source Academy
http://www.OpenSourceAcademy.eu
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Validation errors in FO files
Hi Reinier,
The problem with XSL-FO is that there is no tool which can fully and properly validate it. An XML Schema cannot specify all constraints which are in an XSL-FO output file and there is no official XML Schema for validating XSL-FO output. Besides this, some XSL-FO processors like RenderX XEP have their own extensions to the standard. The best validation for me is to process the XSL-FO to PDF and thus let the processor issue warnings and errors as they are encountered.
I see that RenderX proposed a Relax NG Compact schema as well as a stylesheet for validation:
http://www.renderx.com/tools/validators.html
So you could try those approaches as well, we'll see what we can do on our side to improve XSL-FO validation.
Regards,
Radu
The problem with XSL-FO is that there is no tool which can fully and properly validate it. An XML Schema cannot specify all constraints which are in an XSL-FO output file and there is no official XML Schema for validating XSL-FO output. Besides this, some XSL-FO processors like RenderX XEP have their own extensions to the standard. The best validation for me is to process the XSL-FO to PDF and thus let the processor issue warnings and errors as they are encountered.
This is exactly the default schema used by Oxygen for XSL-FO validation, so it was not necessary for you to specify it manually. We derived it from an XML Schema initially developed by RenderX XEP.I tried it with a validation: "Use detected" and with schema: ${frameworks}/fo/xsd/fo.xsd
I see that RenderX proposed a Relax NG Compact schema as well as a stylesheet for validation:
http://www.renderx.com/tools/validators.html
So you could try those approaches as well, we'll see what we can do on our side to improve XSL-FO validation.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Validation errors in FO files
Forgot to ask you one thing, could you give us a precise example of a case in which the validation reports false problems?
Regards,
Radu
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 36
- Joined: Tue Feb 21, 2012 8:22 pm
- Location: Rotterdam, the Netherlands
- Contact:
Re: Validation errors in FO files
The reason I wanted this is to check the output of RenderX xep. It complains about "WARNING: Bad attribute start-indent: Cannot add type Length to type Word". So somewhere I have an attribute wrong. But because xep does not report an input line number and character position you are left completely in the dark....
I will try the RenderX schema, see if that works. I have put the stage3.fo file up on:http://www.OpenSourceAcademy.eu/fileadmin/stage3.fo.gz
Do you see which element has the incorrect attribute start-indent?
I will try the RenderX schema, see if that works. I have put the stage3.fo file up on:http://www.OpenSourceAcademy.eu/fileadmin/stage3.fo.gz
Do you see which element has the incorrect attribute start-indent?
Kind Regards,
Reinier Kleipool,
Course Materials editor,
Open Source Academy
http://www.OpenSourceAcademy.eu
Reinier Kleipool,
Course Materials editor,
Open Source Academy
http://www.OpenSourceAcademy.eu
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Validation errors in FO files
Hi Reinier,
You are not the only one with this problem:
https://github.com/dita-ot/dita-ot/issues/1421
And this is a similar issue I added a while ago:
https://github.com/dita-ot/dita-ot/issues/1280
The DITA OT stylesheets specify a value in the XSL-FO which although valid according to the specs is not supported by XEP. But the fallback does not seem to break the PDF layout in any way.
Regards,
Radu
You are not the only one with this problem:
https://github.com/dita-ot/dita-ot/issues/1421
And this is a similar issue I added a while ago:
https://github.com/dita-ot/dita-ot/issues/1280
The DITA OT stylesheets specify a value in the XSL-FO which although valid according to the specs is not supported by XEP. But the fallback does not seem to break the PDF layout in any way.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 36
- Joined: Tue Feb 21, 2012 8:22 pm
- Location: Rotterdam, the Netherlands
- Contact:
Re: Validation errors in FO files
Yes same here: The PDF looks just fine. But just to prevent "silly" errors from obscuring real ones it is better to loose them by "correcting" the stylesheet.
When are those renderx guys going to improve their error messages... I also asked them to do that. Let wait and see.
When are those renderx guys going to improve their error messages... I also asked them to do that. Let wait and see.
Kind Regards,
Reinier Kleipool,
Course Materials editor,
Open Source Academy
http://www.OpenSourceAcademy.eu
Reinier Kleipool,
Course Materials editor,
Open Source Academy
http://www.OpenSourceAcademy.eu
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service