Docbook 5.1 rng/schmatron validation errors
-
- Posts: 72
- Joined: Thu Mar 26, 2015 4:57 pm
Docbook 5.1 rng/schmatron validation errors
Post by steve.cuzner »
I've dowloaded the DocBook XInclude V5.1-CSPRD02 schemas from Oasis and I'm getting a schematron validation error. If I open docbookxi.rng and use the validation scenario Validate Relax NG Schema with embedded Schematron I get 307 errors related to undeclared namespace errors, for example:
System ID: T:\28\scuzner.Bdoctools.j276201\matlab\doc\tools\schemas\docbook\5.1\docbookxi.rng
Main validation file: T:\28\scuzner.Bdoctools.j276201\matlab\doc\tools\schemas\docbook\5.1\docbookxi.rng
Scenario name: Validate Relax NG schema with embedded Schematron
Document type: Relax NG
Engine name: ISO Schematron
Severity: error
Description: Stylesheet compilation failed: 306 errors reported
System ID: T:\28\scuzner.Bdoctools.j276201\matlab\doc\tools\schemas\docbook\5.1\docbookxi.rng
Main validation file: T:\28\scuzner.Bdoctools.j276201\matlab\doc\tools\schemas\docbook\5.1\docbookxi.rng
Scenario name: Validate Relax NG schema with embedded Schematron
Document type: Relax NG
Engine name: ISO Schematron
Severity: fatal
Description: XPST0081 XSLT Pattern syntax error at char 13 on line 1825 in {/db:procedure}: Undeclared namespace prefix {db}
Start location: 1825:48
URL: http://www.w3.org/TR/xpath20/#ERRXPST0081
System ID: T:\28\scuzner.Bdoctools.j276201\matlab\doc\tools\schemas\docbook\5.1\docbookxi.rng
Main validation file: T:\28\scuzner.Bdoctools.j276201\matlab\doc\tools\schemas\docbook\5.1\docbookxi.rng
Scenario name: Validate Relax NG schema with embedded Schematron
Document type: Relax NG
Engine name: ISO Schematron
Severity: fatal
Description: XPST0081 XSLT Pattern syntax error at char 8 on line 1874 in {/db:step}: Undeclared namespace prefix {db}
Start location: 1874:43
URL: http://www.w3.org/TR/xpath20/#ERRXPST0081
If I add
<s:ns prefix="db" uri="http://docbook.org/ns/docbook"/>
<s:ns prefix="xlink" uri="http://www.w3.org/1999/xlink"/>
to the grammar element of the rng file, it works fine.
Is this another schematron error in the docbook 5.1 schemas or is this a problem with the validation scenario?
Steve
System ID: T:\28\scuzner.Bdoctools.j276201\matlab\doc\tools\schemas\docbook\5.1\docbookxi.rng
Main validation file: T:\28\scuzner.Bdoctools.j276201\matlab\doc\tools\schemas\docbook\5.1\docbookxi.rng
Scenario name: Validate Relax NG schema with embedded Schematron
Document type: Relax NG
Engine name: ISO Schematron
Severity: error
Description: Stylesheet compilation failed: 306 errors reported
System ID: T:\28\scuzner.Bdoctools.j276201\matlab\doc\tools\schemas\docbook\5.1\docbookxi.rng
Main validation file: T:\28\scuzner.Bdoctools.j276201\matlab\doc\tools\schemas\docbook\5.1\docbookxi.rng
Scenario name: Validate Relax NG schema with embedded Schematron
Document type: Relax NG
Engine name: ISO Schematron
Severity: fatal
Description: XPST0081 XSLT Pattern syntax error at char 13 on line 1825 in {/db:procedure}: Undeclared namespace prefix {db}
Start location: 1825:48
URL: http://www.w3.org/TR/xpath20/#ERRXPST0081
System ID: T:\28\scuzner.Bdoctools.j276201\matlab\doc\tools\schemas\docbook\5.1\docbookxi.rng
Main validation file: T:\28\scuzner.Bdoctools.j276201\matlab\doc\tools\schemas\docbook\5.1\docbookxi.rng
Scenario name: Validate Relax NG schema with embedded Schematron
Document type: Relax NG
Engine name: ISO Schematron
Severity: fatal
Description: XPST0081 XSLT Pattern syntax error at char 8 on line 1874 in {/db:step}: Undeclared namespace prefix {db}
Start location: 1874:43
URL: http://www.w3.org/TR/xpath20/#ERRXPST0081
If I add
<s:ns prefix="db" uri="http://docbook.org/ns/docbook"/>
<s:ns prefix="xlink" uri="http://www.w3.org/1999/xlink"/>
to the grammar element of the rng file, it works fine.
Is this another schematron error in the docbook 5.1 schemas or is this a problem with the validation scenario?
Steve
-
- Posts: 404
- Joined: Thu Aug 21, 2003 11:36 am
- Location: Craiova
- Contact:
Re: Docbook 5.1 rng/schmatron validation errors
Post by radu_pisoi »
Hi,
This is a problem in the Docbook 5.1 schemas because the prefixes used in the Schematron expressions should be declared with the ns{http://purl.oclc.org/dsdl/schematron} directive.
Please see the section *5.4.7 ns element* from the ISO Schematron specification:
http://www.schematron.com/iso/P8.html
This is a problem in the Docbook 5.1 schemas because the prefixes used in the Schematron expressions should be declared with the ns{http://purl.oclc.org/dsdl/schematron} directive.
Please see the section *5.4.7 ns element* from the ISO Schematron specification:
http://www.schematron.com/iso/P8.html
Radu Pisoi
<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
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