madanrajs / probatron4j

Automatically exported from code.google.com/p/probatron4j
0 stars 0 forks source link

File included in schema via <include> not found #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Schema (testSchema.sch) contains:

<schema xmlns="http://purl.oclc.org/dsdl/schematron">
  <include href="testSchema-include.sch"></include>
  <pattern name="...">...</pattern>
</schema>

2. Included schema contains

<pattern name="..." xmlns="http://purl.oclc.org/dsdl/schematron">...</pattern>

3. Run probatron:

java -jar "probatron.jar" testDocument.xml testSchema.sch 

4. Try again with absolute file path in the @href attribute (both
"file:/C:/..." and "file:///C:/...")

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

Error message appears:

Recoverable error on line 359 
  FODC0002: java.net.MalformedURLException

Unable to open referenced included file: testSchema-include.sch
Unable to locate id attribute: testSchema-include.sch

Then the output of just the <pattern> in the main schema appears.

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

Probatron4j 0.7.1
Java 1.6.0_03
Windows XP Professional SP 2

The schema was successfully compiled with Saxon using the standard
iso_dsdl_include.xsl stylesheet

Original issue reported on code.google.com by mdu...@gmail.com on 28 Jul 2009 at 8:31

GoogleCodeExporter commented 9 years ago
Can reproduce.

Original comment by ajsale...@googlemail.com on 14 Aug 2009 at 12:08

GoogleCodeExporter commented 9 years ago
This is fixed for 0.7.2.

Original comment by alex.bro...@gmail.com on 5 Oct 2009 at 1:12