PureAquatica / jing-trang

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

jing validation with schematron schema which has multiple IDs in 'diagnostics' attribute value makes 'JAXP_COMPILE_ERR' #171

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
With -d (diagnose) option, jing validation with schematron schema which has 
multiple IDs in 'diagnostics' attribute value fails, or makes strange result.

TEST FILES:
  test-ok.sch: only one ID in 'diagnostics'.
  test-ng-2.sch: 2 IDs in 'diagnostics'.
  test-ng-3.sch: 3 IDs in 'diagnostics'.
  test.xml: input file for test schemas.

TEST RESULTS:

1. jing -d test-ok.sch test.xml

result:
  error: assertion failed:
    Hello World!
    "Hello World!"

# that's ok.

2. jing -d test-ng-2.sch test.xml

result:
  ERROR:  'JAXP_COMPILE_ERR'
  fatal: Could not compile stylesheet

expected result is:
  error: assertion failed:
    Hello World!
    "Hello World!"
    「こんにちは世界さん!」

3. jing -d test-ng-3.sch test.xml

result:
  error: assertion failed:
    Hello World!
    "Hello World!"
    "Здравствуйте Мир!"

expected result:
  error: assertion failed:
    Hello World!
    "Hello World!"
    「こんにちは世界さん!」
    "Здравствуйте Мир!"

PATCH:

iso-schematron.xsl and schematron.xsl seems to have bugs.
See patch file 'schmeatron-xsl-patch-to-r2363.diff'.

Original issue reported on code.google.com by na...@4dn.co.jp on 22 Jul 2013 at 6:02

Attachments: