Ant Support in oXygen Eclipse Plugin
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 9436
- Joined: Fri Jul 09, 2004 5:18 pm
For anybody else with this problem
Hello Christopher
The schematron validation is based on applying stylesheets over the XML documents received as input.
Transformation steps:
1) Download files schematron-message.xsl <http://www.ascc.net/xml/schematron/1.5/ ... essage.xsl> and skeleton1-5.xsl <http://www.ascc.net/xml/schematron/1.5/skeleton1-5.xsl> from http://xml.ascc.net/schematron/1.5/mess ... ssage.html
2) Transform your schematron rules file (sch) against the schematron-message.xsl stylesheet, this results in another stylesheet file which you can save for example as "validator.xsl".
3) Transform any of your xml files against the "validator.xsl" stylesheet and on the output you will receive the validation errors or warnings.
For xslt transformation you can use the Ant "XSLT" task from http://ant.apache.org/manual/CoreTasks/style.html.
Example of ant task for creating the validator.xsl stylesheet:
<xslt in="doc.xml" out="output.txt"
style="style.xsl">
<outputproperty name="method" value="xml"/>
<outputproperty name="indent" value="yes"/>
</xslt>
Hope this helps,
Regards, Radu.
The schematron validation is based on applying stylesheets over the XML documents received as input.
Transformation steps:
1) Download files schematron-message.xsl <http://www.ascc.net/xml/schematron/1.5/ ... essage.xsl> and skeleton1-5.xsl <http://www.ascc.net/xml/schematron/1.5/skeleton1-5.xsl> from http://xml.ascc.net/schematron/1.5/mess ... ssage.html
2) Transform your schematron rules file (sch) against the schematron-message.xsl stylesheet, this results in another stylesheet file which you can save for example as "validator.xsl".
3) Transform any of your xml files against the "validator.xsl" stylesheet and on the output you will receive the validation errors or warnings.
For xslt transformation you can use the Ant "XSLT" task from http://ant.apache.org/manual/CoreTasks/style.html.
Example of ant task for creating the validator.xsl stylesheet:
<xslt in="doc.xml" out="output.txt"
style="style.xsl">
<outputproperty name="method" value="xml"/>
<outputproperty name="indent" value="yes"/>
</xslt>
Hope this helps,
Regards, Radu.
-
- Posts: 2
- Joined: Thu Aug 04, 2005 7:06 pm
- Location: Denver, CO USA
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