Bug 627688

Summary: Newer msv needed for Docbook5 validation
Product: [Fedora] Fedora Reporter: Jerry James <loganjerry>
Component: msvAssignee: Mat Booth <mat.booth>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: mat.booth
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: msv-2009.1-3.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-18 05:45:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jerry James 2010-08-26 16:57:07 UTC
Description of problem:
The Docbook 5 instructions describe how to validate documents written against the RelaxNG schema with msv-relames.  However, the instructions don't work with the version of msv-relames currently available in Fedora.  Relames chokes on the embedded Schematron rules in the Docbook 5 schema, for example:

parsing    /usr/share/xml/docbook5/schema/rng/5.0/docbookxi.rng
element "s:ns" is not allowed here
  3:79@file:///usr/share/xml/docbook5/schema/rng/5.0/docbookxi.rng
  ...
element "s:pattern" is not allowed here
  1582:45@file:///usr/share/xml/docbook5/schema/rng/5.0/docbookxi.rng
  ...

I downloaded the latest available upstream release of relames, dated 20 March 2006, and it properly parses the Docbook 5 RelaxNG schema and applies the Schematron rules during validation.

Version-Release number of selected component (if applicable):
msv-relames-1.2-0.4.20050722.3.4.fc12.1.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Write or acquire a document written against the Docbook 5 RelaxNG schema
2. java -Xss1M -cp `build-classpath msv-relames msv-msv msv-xsdlib relaxngDatatype isorelax xalan-j2` com.sun.msv.schematron.Driver /usr/share/xml/docbook5/schema/rng/5.0/docbook.rng <document.xml>
  
Actual results:
Lots of error messages from relames indicating that it does not understand the embedded Schematron rules.

Expected results:
Successful parsing of the Schematron rules and their application to the document being validated.

Additional info:
Here's a trivial input file for use in reproducing:

<?xml version="1.0" encoding="UTF-8"?>
<book xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
  <info>
    <title>A Very Short Book</title>
    <date>26 Aug 2010</date>
  </info>

  <chapter>
    <title>The World's Shortest Chapter</title>
    <para>This paragraph isn't very long, either.</para>
  </chapter>
</book>

Comment 1 Mat Booth 2010-09-16 23:06:25 UTC
Thanks. I will update msv soon.

Comment 2 Mat Booth 2010-09-19 14:47:20 UTC
Hi, would you care to try out the latest RPMs I've built?

http://mbooth.fedorapeople.org/msv/

I need to resolve a problem in a dependency before I can issue a build to Koji, but your feedback would be appreciated in the meantime.

Thanks,
Mat

Comment 3 Fedora Update System 2010-10-10 00:41:56 UTC
msv-2009.1-3.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/msv-2009.1-3.fc14

Comment 4 Fedora Update System 2010-10-10 02:03:58 UTC
msv-2009.1-3.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update msv'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/msv-2009.1-3.fc14

Comment 5 Fedora Update System 2010-10-18 05:45:11 UTC
msv-2009.1-3.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.