axf Extensions
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 13
- Joined: Wed Aug 02, 2006 2:18 pm
axf Extensions
I am using XML Formatter 4.1 it all seams to work but in my stylesheets I get a lot of errors like this:
E cvc-complex-type.2.4.a: Invalid content was found starting with element 'axf:document-info'. One of '{"http://www.renderx.com/XSL/Extensions":meta-info, "http://www.renderx.com/XSL/Extensions":page-device, "http://www.w3.org/1999/XSL/Format":layout-master-set}' is expected.
It seams not to like the extension "axf" I am using the namespace xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions" in my style sheets but still get warnings?
Do I have to set Oxygen up some other way? Can anyone help.
E cvc-complex-type.2.4.a: Invalid content was found starting with element 'axf:document-info'. One of '{"http://www.renderx.com/XSL/Extensions":meta-info, "http://www.renderx.com/XSL/Extensions":page-device, "http://www.w3.org/1999/XSL/Format":layout-master-set}' is expected.
It seams not to like the extension "axf" I am using the namespace xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions" in my style sheets but still get warnings?
Do I have to set Oxygen up some other way? Can anyone help.
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
-
- Posts: 13
- Joined: Wed Aug 02, 2006 2:18 pm
Hi George
Thanks for quick reply, I made a mistake, its not in my stylesheet, its on my FO code, if I transform my XML with my stylesheet to PDF it works just fine, but when I try to edit the FO code thats when I get the errors, its not a big thing bit its handy to edit that code from time to time.
The first bit I get that error message on any axf extension:
If you have any ideas, would be great!
Regards,
Adam
Thanks for quick reply, I made a mistake, its not in my stylesheet, its on my FO code, if I transform my XML with my stylesheet to PDF it works just fine, but when I try to edit the FO code thats when I get the errors, its not a big thing bit its handy to edit that code from time to time.
The first bit I get that error message on any axf extension:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions"
xml:lang="en">
<axf:document-info value="document_title" name="title"/>
<axf:document-info value="document_subtitle" name="subject"/>
<fo:layout-master-set>
<fo:simple-page-master axf:printer-marks-line-width="0.25pt" axf:printer-marks="crop cross" axf:bleed="3mm" axf:crop-offset="20mm" page-width="21.0cm" page-height="29.7cm" master-name="cover">
Regards,
Adam
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Hello,
I think they are validation errors signalled by the validate as you type feature of oXygen. Your FO document uses AntennaHouse extensions of XSL-FO but by default in oXygen it is validated against an XML Schema for XSL-FO which includes RenderX extensions of XSL-FO. This is due to the default association between FO documents and this schema defined in Options -> Preferences -> Editor -> Default Schema Association, see the association for the root element called root from the http://www.w3.org/1999/XSL/Format namespace. If you have a schema which includes AntennaHouse extensions you can validate the document against it by associating such a schema explicitly to your document using the Associate Schema action available on the Document -> XML Document menu and also on the Document toolbar. The schema type can be any type of schema supported in oXygen: XML Schema, Relax NG schema, DTD, NVDL, etc.
If you just want to ignore the errors go to Options -> Preferences -> Editor -> Document Checking and disable Validate as you type.
Regards,
Sorin
I think they are validation errors signalled by the validate as you type feature of oXygen. Your FO document uses AntennaHouse extensions of XSL-FO but by default in oXygen it is validated against an XML Schema for XSL-FO which includes RenderX extensions of XSL-FO. This is due to the default association between FO documents and this schema defined in Options -> Preferences -> Editor -> Default Schema Association, see the association for the root element called root from the http://www.w3.org/1999/XSL/Format namespace. If you have a schema which includes AntennaHouse extensions you can validate the document against it by associating such a schema explicitly to your document using the Associate Schema action available on the Document -> XML Document menu and also on the Document toolbar. The schema type can be any type of schema supported in oXygen: XML Schema, Relax NG schema, DTD, NVDL, etc.
If you just want to ignore the errors go to Options -> Preferences -> Editor -> Document Checking and disable Validate as you type.
Regards,
Sorin
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Hi Adam,
FOfiles are associated with the [oXygen]/frameworks/fo/xsd/fo.xsd schema through a rule matching the root element from the http://www.w3.org/1999/XSL/Format namespace in the "Default Schmea Association" in Options->Preferences -- Editor. This schema has support for pain FO plus RenderX extensions. To validate FO file with Antenna House extensions you need a schema that knows about those extensions, probably Antenna House provides such a schema. You can then associate your file with that schema either inside the file (using the associate schema dialog for instance) or through the "Default Schema Association" page, for instance by editing the existing association or by creating another one based on the file name, etc. (if you create another association and keep the existing one make sure you place yours before the existing one).
Best Regards,
George
FOfiles are associated with the [oXygen]/frameworks/fo/xsd/fo.xsd schema through a rule matching the root element from the http://www.w3.org/1999/XSL/Format namespace in the "Default Schmea Association" in Options->Preferences -- Editor. This schema has support for pain FO plus RenderX extensions. To validate FO file with Antenna House extensions you need a schema that knows about those extensions, probably Antenna House provides such a schema. You can then associate your file with that schema either inside the file (using the associate schema dialog for instance) or through the "Default Schema Association" page, for instance by editing the existing association or by creating another one based on the file name, etc. (if you create another association and keep the existing one make sure you place yours before the existing one).
Best Regards,
George
George Cristian Bina
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