Warning about validation when loading framework files
Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
-
- Posts: 240
- Joined: Wed Jun 17, 2015 12:46 pm
Warning about validation when loading framework files
Hello,
I am using Author web 24.1.0.0 version.
When my custom framework files are loaded, I got multiple warnings in the console.
Can you help me with that ?
Thank you,
Johann
I am using Author web 24.1.0.0 version.
When my custom framework files are loaded, I got multiple warnings in the console.
I exported the validationScenarios from Oxygen Editor so I do not see what is wrong.ro.sync.options.n - Invalid field : validationSchema for class ro.sync.exml.editor.validate.ValidationUnit. ro.sync.options.InvalidPersistentObjException: Schema URI must be specified
Code: Select all
<field name="validationScenarios">
<validationScenario-array>
<validationScenario>
<field name="pairs">
<list>
<validationUnit>
<field name="validationType">
<validationUnitType>
<field name="validationInputType">
<String>text/xml</String>
</field>
</validationUnitType>
</field>
<field name="url">
<String>${currentFileURL}</String>
</field>
<field name="validationEngine">
<validationEngine>
<field name="engineType">
<String>Xerces</String>
</field>
<field name="allowsAutomaticValidation">
<Boolean>true</Boolean>
</field>
</validationEngine>
</field>
<field name="allowAutomaticValidation">
<Boolean>true</Boolean>
</field>
<field name="validationSchema">
<validationUnitSchema>
<field name="dtdSchemaPublicID">
<String>-//MYPUBLICID</String>
</field>
<field name="type">
<Integer>1</Integer>
</field>
</validationUnitSchema>
</field>
</validationUnit>
<validationUnit>
<field name="validationType">
<validationUnitType>
<field name="validationInputType">
<String>text/xml</String>
</field>
</validationUnitType>
</field>
<field name="url">
<String>${currentFileURL}</String>
</field>
<field name="validationEngine">
<validationEngine>
<field name="engineType">
<String><Default engine></String>
</field>
<field name="allowsAutomaticValidation">
<Boolean>true</Boolean>
</field>
</validationEngine>
</field>
<field name="allowAutomaticValidation">
<Boolean>true</Boolean>
</field>
<field name="extensions">
<null/>
</field>
<field name="validationSchema">
<validationUnitSchema>
<field name="dtdSchemaPublicID">
<null/>
</field>
<field name="schematronPhase">
<null/>
</field>
<field name="type">
<Integer>7</Integer>
</field>
<field name="uri">
<String>${framework}/schemas/schematron/href-attribute-rules.sch</String>
</field>
</validationUnitSchema>
</field>
</validationUnit>
</list>
</field>
<field name="type">
<String>Validation_scenario</String>
</field>
<field name="name">
<String>My validation scenario</String>
</field>
</validationScenario>
</validationScenario-array>
</field>
Thank you,
Johann
-
- Posts: 515
- Joined: Wed May 20, 2009 2:40 pm
Re: Warning about validation when loading framework files
Hello,
This warning is related to the "uri" field from the validationUnitSchema and it is presented when the uri cannot be resolved.
Can you please check if the provided location points to an existing schema (${framework}/schemas/schematron/href-attribute-rules.sch)?
Best Regards,
Mihaela
This warning is related to the "uri" field from the validationUnitSchema and it is presented when the uri cannot be resolved.
Can you please check if the provided location points to an existing schema (${framework}/schemas/schematron/href-attribute-rules.sch)?
Code: Select all
<field name="uri">
<String>${framework}/schemas/schematron/href-attribute-rules.sch</String>
</field>
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
http://www.oxygenxml.com
-
- Posts: 515
- Joined: Wed May 20, 2009 2:40 pm
Re: Warning about validation when loading framework files
Hello,
Thank you for your response.
We checked again and the warning appears because the following validation unit schema does not specify a "uri" field:
This serialization means that you have a validation scenario that uses a custom DTD schema (not detected schema) that does not specify the schema URL. How did you set up the validation configuration? Did you manually modified the .framework file or did you used the UI from the Oxygen XML Editor?
Best Regards,
Mihaela
Thank you for your response.
We checked again and the warning appears because the following validation unit schema does not specify a "uri" field:
Code: Select all
<field name="validationSchema">
<validationUnitSchema>
<field name="dtdSchemaPublicID">
<String>-//MYPUBLICID</String>
</field>
<field name="type">
<Integer>1</Integer>
</field>
</validationUnitSchema>
</field>
Best Regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
http://www.oxygenxml.com
-
- Posts: 240
- Joined: Wed Jun 17, 2015 12:46 pm
Re: Warning about validation when loading framework files
Hello,
You are right.
This part is not necessary:
because I used:
If I remove it, no more WARNINGS.
This code is quite old with us. It was certainly originally generated using the GUI of an old version of oxygen editor.
Thank you for your help,
Johann
You are right.
This part is not necessary:
Code: Select all
<field name="validationSchema">
<validationUnitSchema>
<field name="dtdSchemaPublicID">
<String>-//MYPUBLICID</String>
</field>
<field name="type">
<Integer>1</Integer>
</field>
</validationUnitSchema>
</field>
Code: Select all
<field name="allowAutomaticValidation">
<Boolean>true</Boolean>
</field>
This code is quite old with us. It was certainly originally generated using the GUI of an old version of oxygen editor.
Thank you for your help,
Johann
-
- Posts: 515
- Joined: Wed May 20, 2009 2:40 pm
Re: Warning about validation when loading framework files
Hello,
We are glad that the problem is solved.
Please let us know if you encounter any other problem.
Best Regards,
Mihaela
We are glad that the problem is solved.
Please let us know if you encounter any other problem.
Best Regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
http://www.oxygenxml.com
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