Validate against specified xsd with embedded schematorn rules
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 280
- Joined: Thu Nov 28, 2013 9:32 am
- Location: Hamburg/Germany
- Contact:
Validate against specified xsd with embedded schematorn rules
Hi,
I have multiple XSD with embedded schematron rules. When validating an xXML file referencing one of the XSDs the embedded schematron rules are not checked. I knkow I can create a validation scenario but I have to set a specific XSD to enable the "Embedded Schematron rules" check box. But then I have to create a validation scenario for every XSDand select the right one for each XML file. Is there a way to either enable embedded schematron checks for every XSD or define a validation scenario against the references XSD with embedded schematron rules?
Currently still using oXygen 18.1.
Thanks and regards,
Patrik
I have multiple XSD with embedded schematron rules. When validating an xXML file referencing one of the XSDs the embedded schematron rules are not checked. I knkow I can create a validation scenario but I have to set a specific XSD to enable the "Embedded Schematron rules" check box. But then I have to create a validation scenario for every XSDand select the right one for each XML file. Is there a way to either enable embedded schematron checks for every XSD or define a validation scenario against the references XSD with embedded schematron rules?
Currently still using oXygen 18.1.
Thanks and regards,
Patrik
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Validate against specified xsd with embedded schematorn rules
Hello,
You should specify in the XML instance that the XSD should also be treated as Schematron
Regards,
Adrian
Unfortunately there is no global option to force embedded Schematron for all XSDs. Also, a validation unit from a validation scenario can only be configured to use the detected schema or a specific schema. For the detected schema you cannot specify the schema type.Patrik wrote:Is there a way to either enable embedded schematron checks for every XSD or define a validation scenario against the references XSD with embedded schematron rules?
You should specify in the XML instance that the XSD should also be treated as Schematron
Code: Select all
<?xml-model href="myschema.xsd" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 280
- Joined: Thu Nov 28, 2013 9:32 am
- Location: Hamburg/Germany
- Contact:
Re: Validate against specified xsd with embedded schematorn rules
Thanks Adrian, this solution works fine with me.
Regards,
Patrik
Regards,
Patrik
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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