This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 243186 - Update schematron skeleton XSL
Summary: Update schematron skeleton XSL
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Cosmos (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Hubert Leung CLA
QA Contact: amehrega CLA
URL:
Whiteboard:
Keywords:
: 179747 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-08-05 11:49 EDT by Hubert Leung CLA
Modified: 2012-01-03 13:54 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hubert Leung CLA 2008-08-05 11:49:48 EDT
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
Comment 1 David Whiteman CLA 2008-08-05 13:38:56 EDT
I posted a question about this to public-sml.  Here's a link to it:

http://markmail.org/message/cakh3pooooahojsw
Comment 2 David Whiteman CLA 2008-08-05 13:40:00 EDT
This is important to resolve given that the version we have approval to check in to cvs is the xml.ascc.net one.
Comment 3 David Whiteman CLA 2008-08-05 18:11:30 EDT
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.
Comment 4 David Whiteman CLA 2008-08-06 10:21:30 EDT
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?
Comment 5 David Whiteman CLA 2008-08-15 10:40:55 EDT
*** Bug 179747 has been marked as a duplicate of this bug. ***
Comment 6 Hubert Leung CLA 2008-08-15 15:50:46 EDT
The validator is now using the ISO version of the schematron downloaded from http://www.schematron.com/validators/iso_schematron_skeleton.xsl.  
Comment 7 David Whiteman CLA 2008-11-05 14:59:16 EST
closing to cleanup bugzilla