[XML Validation] xinclude processing before validation
Oxygen general issues.
-
- Posts: 25
- Joined: Fri Mar 20, 2009 5:28 pm
[XML Validation] xinclude processing before validation
Hello,
Has anyone been able to make oxygen resolve the XInclude (somewhat at pre-processing stage), and then only validate the consolidated file against a schema?
This is in order the not have to declare XInclude elements everywhere in my validating schema.
Has anyone been able to make oxygen resolve the XInclude (somewhat at pre-processing stage), and then only validate the consolidated file against a schema?
This is in order the not have to declare XInclude elements everywhere in my validating schema.
jerome poupard
AMConresearch
164 Daniel St. N., Suite 202
Arnprior, Ontario
K7S 2L3
AMConresearch
164 Daniel St. N., Suite 202
Arnprior, Ontario
K7S 2L3
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: [XML Validation] xinclude processing before validation
Post by sorin_ristache »
Hello,
That depends on the language of the schema that you use for validating your XML documents and also on the XML processor that does the validation. For example for XML Schema and RELAX NG schemas and the default XML processor of Oxygen (that is you run the Validate Document action or you select <Default engine> in a validation scenario) you should just enable XInclude validation from menu Options -> Preferences -> XML -> XML Parser (by default it is enabled) without declaring the XInclude elements and attributes in your schema. This is true also for the Saxon SA and LibXML validators. In case of DTD the default XML processor does not accept the XInclude elements and attributes and you have to declare them in your DTD.
What is the language of your schema and what XML processor do you use in the validation action?
Regards,
Sorin
That depends on the language of the schema that you use for validating your XML documents and also on the XML processor that does the validation. For example for XML Schema and RELAX NG schemas and the default XML processor of Oxygen (that is you run the Validate Document action or you select <Default engine> in a validation scenario) you should just enable XInclude validation from menu Options -> Preferences -> XML -> XML Parser (by default it is enabled) without declaring the XInclude elements and attributes in your schema. This is true also for the Saxon SA and LibXML validators. In case of DTD the default XML processor does not accept the XInclude elements and attributes and you have to declare them in your DTD.
What is the language of your schema and what XML processor do you use in the validation action?
Regards,
Sorin
-
- Posts: 25
- Joined: Fri Mar 20, 2009 5:28 pm
Re: [XML Validation] xinclude processing before validation
hi Sorin,
Thanks for the anwser, I was indeed using DTD, I am going to switch to RelaxNG schema.
While we are on the topic, does oxygen process xml document specific catalogs:
<?oasis-xml-catalog catalog="xxxx"?>
Thanks for the anwser, I was indeed using DTD, I am going to switch to RelaxNG schema.
While we are on the topic, does oxygen process xml document specific catalogs:
<?oasis-xml-catalog catalog="xxxx"?>
jerome poupard
AMConresearch
164 Daniel St. N., Suite 202
Arnprior, Ontario
K7S 2L3
AMConresearch
164 Daniel St. N., Suite 202
Arnprior, Ontario
K7S 2L3
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: [XML Validation] xinclude processing before validation
Post by sorin_ristache »
Hello,
Oxygen can use OASIS XML catalogs but it does not recognize yet the processing instruction oasis-xml-catalog. You have to add your XML catalogs from menu Options -> Preferences -> XML -> XML Catalog.
Regards,
Sorin
Oxygen can use OASIS XML catalogs but it does not recognize yet the processing instruction oasis-xml-catalog. You have to add your XML catalogs from menu Options -> Preferences -> XML -> XML Catalog.
Regards,
Sorin
-
- Posts: 25
- Joined: Fri Mar 20, 2009 5:28 pm
Re: [XML Validation] xinclude processing before validation
okie, used a workaround with creating a project and configuring the catalog ${pdu}/catalog.xml to use the project specific catalog.sorin wrote:Hello,
Oxygen can use OASIS XML catalogs but it does not recognize yet the processing instruction oasis-xml-catalog. You have to add your XML catalogs from menu Options -> Preferences -> XML -> XML Catalog.
Regards,
Sorin
Cheers,
jerome poupard
AMConresearch
164 Daniel St. N., Suite 202
Arnprior, Ontario
K7S 2L3
AMConresearch
164 Daniel St. N., Suite 202
Arnprior, Ontario
K7S 2L3
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