is there a way to call schematron rules from plugin
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 168
- Joined: Fri Feb 28, 2020 4:02 pm
is there a way to call schematron rules from plugin
Post by vishwavaranasi »
hello team ,
is there a way to call our own schematron rules from a workspace plugin API ro.sync.exml.workspace.api.Plugin?
from a swing component - on click of button like "Validate" - it should validate all the topics of the MAP and want to give the errors or warnings in a swing window back to the user.
Thanks,
vishwa
is there a way to call our own schematron rules from a workspace plugin API ro.sync.exml.workspace.api.Plugin?
from a swing component - on click of button like "Validate" - it should validate all the topics of the MAP and want to give the errors or warnings in a swing window back to the user.
Thanks,
vishwa
Thanks,
vishwa
vishwa
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: is there a way to call schematron rules from plugin
Hi,
The "Validate and check for completeness" action from the DITA Maps Manager view already allows you to choose an extra Schematron schema to be used to validate every referenced map and topic.
You also have batch validate actions in the Oxygen Project view when you right click a folder.
If you want to implement your own Schematron validation, schematron validation works by applying a sequence of XSLT stylesheets over the Schematron document to produce an XSLT stylesheet and then applying this XSLT stylesheet over the XML document:
https://www.xml.com/news/2018-11-initia ... f-schxslt/
because we do not have specific Java API like "validateWithSchematron(String xmlContents, String schematronContents)".
Regards,
Radu
The "Validate and check for completeness" action from the DITA Maps Manager view already allows you to choose an extra Schematron schema to be used to validate every referenced map and topic.
You also have batch validate actions in the Oxygen Project view when you right click a folder.
If you want to implement your own Schematron validation, schematron validation works by applying a sequence of XSLT stylesheets over the Schematron document to produce an XSLT stylesheet and then applying this XSLT stylesheet over the XML document:
https://www.xml.com/news/2018-11-initia ... f-schxslt/
because we do not have specific Java API like "validateWithSchematron(String xmlContents, String schematronContents)".
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “SDK-API, Frameworks - Document Types”
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