Schematron: Reflect line and column number
This should cover W3C XML Schema, Relax NG and DTD related problems.
-
- Posts: 2
- Joined: Tue Dec 06, 2011 4:04 pm
Schematron: Reflect line and column number
I'm using schematron via below mentioned command sequence
java -jar saxon9he.jar -l -o:output.xsl -s:MB-Journals.sch d:\Keshav\Schematron\iso-schematron-xslt2\iso_svrl_for_xslt2.xsl
java -jar saxon9he.jar -l -o:whereDidIScrewUp.xml -s:%1 output.xsl
java -jar saxon9he.jar -l -o:Report-html.html -s:whereDidIScrewUp.xml Report-html.xsl
I need to display line:column number for all error message to the user like showing in Oxygen.
What should I do to fix this issue?
---Kanhaiya
java -jar saxon9he.jar -l -o:output.xsl -s:MB-Journals.sch d:\Keshav\Schematron\iso-schematron-xslt2\iso_svrl_for_xslt2.xsl
java -jar saxon9he.jar -l -o:whereDidIScrewUp.xml -s:%1 output.xsl
java -jar saxon9he.jar -l -o:Report-html.html -s:whereDidIScrewUp.xml Report-html.xsl
I need to display line:column number for all error message to the user like showing in Oxygen.
What should I do to fix this issue?
---Kanhaiya
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Schematron: Reflect line and column number
Post by sorin_ristache »
Hello,
How do you run these commands? Do you run them in Oxygen? Where do you need to display the line and column? Are they the line and column of the error messages that you see in Oxygen when validating whereDidIScrewUp.xml against MB-Journals.sch?
Regards,
Sorin
How do you run these commands? Do you run them in Oxygen? Where do you need to display the line and column? Are they the line and column of the error messages that you see in Oxygen when validating whereDidIScrewUp.xml against MB-Journals.sch?
Regards,
Sorin
-
- Posts: 2
- Joined: Tue Dec 06, 2011 4:04 pm
Re: Schematron: Reflect line and column number
I am running this at DOS prompt where all 3 lines avaialble in valid.bat file.
Line and column should be available in whereDidIScrewUp.xml like 'location' is coming in this file.
Yes you are right, this is the same line and column number which is visible in Oxygen.
Line and column should be available in whereDidIScrewUp.xml like 'location' is coming in this file.
Yes you are right, this is the same line and column number which is visible in Oxygen.
sorin wrote:Hello,
How do you run these commands? Do you run them in Oxygen? Where do you need to display the line and column? Are they the line and column of the error messages that you see in Oxygen when validating whereDidIScrewUp.xml against MB-Journals.sch?
Regards,
Sorin
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Re: Schematron: Reflect line and column number
It depends on that Schematron implementation that you use to make available that information. You should look into the documentation of that to see if this is available and if yes, how you can obtain that if by default this information is not provided.
The Schematron implementation used by oXygen is available inside oxygen/frameworks/schematron/impl but the location of the errors is done inside oXygen's Java code, it is not a part of the stylesheets. We detect when an error is reported and we identify at that time which is the element that triggers that error and record that location information in the reported error.
Best Regards,
George
The Schematron implementation used by oXygen is available inside oxygen/frameworks/schematron/impl but the location of the errors is done inside oXygen's Java code, it is not a part of the stylesheets. We detect when an error is reported and we identify at that time which is the element that triggers that error and record that location information in the reported error.
Best Regards,
George
George Cristian Bina
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