Community
Participate
Working Groups
The schematron XSL that's in CVS can't be downloaded anymore. A very similar version of the XSL can be downloaded from here: http://xml.ascc.net/schematron/1.5/skeleton1-5.xsl But it doesn't work with the current code. I get the following error after replacing the schemtron xsl with the one from xml.ascc.net. We need to find out which is the correct schemtron XSL to use, and make sure it work if we need to change the XSL version. -------------------------- Output of the testRuleValid test case: Line number: 64 Severity: error ; Line#: 486; Column#: 16 javax.xml.transform.TransformerException: Warning: unrecognized element sch:schema at org.apache.xalan.transformer.MsgMgr.message(MsgMgr.java:67) at org.apache.xalan.templates.ElemMessage.execute(ElemMessage.java:120) at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:393) at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:176) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2503) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2373) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1459) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:798) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1376) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1354) at org.eclipse.cosmos.rm.internal.validation.smlvalidators.SchematronValidator.transform(SchematronValidator.java:547) at org.eclipse.cosmos.rm.internal.validation.smlvalidators.SchematronValidator.validateSchematron(SchematronValidator.java:305) at org.eclipse.cosmos.rm.internal.validation.smlvalidators.SchematronValidator.processNode(SchematronValidator.java:188) at org.eclipse.cosmos.rm.internal.validation.smlvalidators.SchematronValidator.validate(SchematronValidator.java:134) at org.eclipse.cosmos.rm.internal.validation.smlvalidators.TestSchematronValidator.parseDocument(TestSchematronValidator.java:71) at org.eclipse.cosmos.rm.internal.validation.smlvalidators.TestSchematronValidator.testRuleValid(TestSchematronValidator.java:82) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:618) at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:120) at org.eclipse.hyades.test.common.junit.HyadesTestCase.run(HyadesTestCase.java:172) at junit.framework.TestSuite.runTest(TestSuite.java:230) at org.eclipse.hyades.test.common.junit.HyadesTestSuite.runTest(HyadesTestSuite.java:457) at junit.framework.TestSuite.run(TestSuite.java:225) at org.eclipse.hyades.test.common.junit.HyadesTestSuite.doRun(HyadesTestSuite.java:425) at org.eclipse.hyades.test.common.junit.HyadesTestSuite.run(HyadesTestSuite.java:338) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) Severity: error Warning: unrecognized element sch:schema
I posted a question about this to public-sml. Here's a link to it: http://markmail.org/message/cakh3pooooahojsw
This is important to resolve given that the version we have approval to check in to cvs is the xml.ascc.net one.
Ginny from HP replied to me here: http://markmail.org/message/2tgntycd7vmeo4vf What this tells me is that we need to move to ISO Schematron, and that this is a spec compliance issue. My question is which .xsl file do we need for this? There are multiple linked off of www.schematron.com. Is it the one for XSLT1 or XSLT2? Once we determine this, I will get an IPZilla created ASAP to get approval to check in the file. We will use this bugzilla here to track our progress in making sure our code works with ISO Schematron.
Good news... there's already an ISO Schematron skeleton approved for use in COSMOS. Eric Rose submitted this IPZilla for SDD: https://dev.eclipse.org/ipzilla/show_bug.cgi?id=2472 Here's the file that has been approved: http://www.schematron.com/validators/iso_schematron_skeleton.xsl Hubert, when you get a chance, could you try this one out please?
*** Bug 179747 has been marked as a duplicate of this bug. ***
The validator is now using the ISO version of the schematron downloaded from http://www.schematron.com/validators/iso_schematron_skeleton.xsl.
closing to cleanup bugzilla