PureAquatica / jing-trang

Automatically exported from code.google.com/p/jing-trang
0 stars 0 forks source link

ID/IDREF checking in W3C XML Schema validation #114

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Taking the following file (also attached) as input :

<?xml version="1.0" encoding="UTF-8"?>
<mets:mets xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:mets="http://www.loc.gov/METS/"    
    xsi:schemaLocation="http://www.loc.gov/METS/ mets.xsd">
    <mets:dmdSec ID="dmd1">
    </mets:dmdSec>
    <mets:structMap>
        <mets:div DMDID="dmd1xxx"/>
    </mets:structMap>
</mets:mets>

2. Using Jing version 20091111 validate against mets.xsd (attached)
3. n/a

What is the expected output? What do you see instead?

The following error should be reported, as it is by Xerces-J 2.9.1 within
oXygen 11.2:

cvc-id.1: There is no ID/IDREF binding for IDREF 'dmd1xxx'.

Instead, no error is reported.

What version of the product are you using? On what operating system?

Jing 20091111 on Mac OS X 10.5.8 running Java 1.5.0_24.

also

Jing 20091111 on Sun OS 5.9 running Java 1.6.0_18

Please provide any additional information below.

Note that Jing as a component of oNVDL fails to report the error as well,
tested on:

oNVDL version 20070122 on Sun OS 5.9 running Java 1.6.0_18

oNVDL version 20070517 on Mac OS X 10.5.8 running Java 1.5.0_24, from the
command line and through oXygen.

Original issue reported on code.google.com by Catapan...@gmail.com on 1 Jun 2010 at 1:43

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for reporting this, it is fixed in r2346.

Original comment by georgebina76 on 1 Jun 2010 at 2:44