Project

Profile

Help

Bug #4347

closed

Imported schema component model requires XSD version 1.1 when running XQuery with EE license

Added by Radu Coravu almost 3 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Schema-Aware processing
Sprint/Milestone:
-
Start date:
2019-10-18
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.9
Fix Committed on Branch:
9.9
Fixed in Maintenance Release:
Platforms:

Description

We have an auto test which with Saxon 9.9 attempts to run the XQuery:

analyze-string(doc('test2017080501.xml')/*, '^(:[0-9]+[a-z]*:)(.*)\r?\n', 'im')
over the XML document:

:20:PmtReferenceID000012 :21:Not used :25: PHMNLBICXXX/Account00010203 :28c:00001/0001 ~~~

and with Saxon 9.9 we get the error (this previously worked with Saxon 9.8):

; SystemID: file:/D:/projects/eXml-Saxon9/test/xquery/EXM-39891/sample.xquery; Line#: 1; Column#: 20
net.sf.saxon.type.SchemaException: net.sf.saxon.trans.XPathException: net.sf.saxon.type.SchemaException: Imported schema component model requires XSD version 1.1
	at com.saxonica.config.EnterpriseConfiguration.addSchemaSource(EnterpriseConfiguration.java:690)
	at net.sf.saxon.Configuration.addSchemaSource(Configuration.java:3156)
	at net.sf.saxon.functions.AnalyzeStringFn.call(AnalyzeStringFn.java:107)
	at net.sf.saxon.functions.AnalyzeStringFn.call(AnalyzeStringFn.java:35)
	at net.sf.saxon.expr.FunctionCall.iterate(FunctionCall.java:532)
	at net.sf.saxon.expr.Expression.process(Expression.java:941)
	at net.sf.saxon.query.XQueryExpression.run(XQueryExpression.java:425)
	at ro.sync.xml.transformer.xquery.XQueryTransformer.runXQuery(XQueryTransformer.java:1215)
	at ro.sync.xml.transformer.xquery.XQueryTransformer.transform(XQueryTransformer.java:949)
	at ro.sync.xml.transformer.xquery.XQueryTransformerTest.testAnalyseStringEXM_39891(XQueryTransformerTest.java:150)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at junit.extensions.jfcunit.JFCTestCase$5.run(JFCTestCase.java:580)
	at junit.extensions.jfcunit.JFCTestCase$3.run(JFCTestCase.java:478)
	at java.lang.Thread.run(Thread.java:745)
Caused by: net.sf.saxon.trans.XPathException: net.sf.saxon.type.SchemaException: Imported schema component model requires XSD version 1.1
	at com.saxonica.ee.schema.SchemaModelLoader.startContent(SchemaModelLoader.java:192)
	at net.sf.saxon.event.NamespaceReducer.startContent(NamespaceReducer.java:220)
	at net.sf.saxon.event.ProxyReceiver.startContent(ProxyReceiver.java:177)
	at net.sf.saxon.event.ProxyReceiver.startContent(ProxyReceiver.java:177)
	at net.sf.saxon.tree.tiny.TinyElementImpl.copy(TinyElementImpl.java:433)
	at net.sf.saxon.tree.tiny.TinyDocumentImpl.lambda$copy$0(TinyDocumentImpl.java:297)
	at net.sf.saxon.om.SequenceIterator.forEachOrFail(SequenceIterator.java:128)
	at net.sf.saxon.tree.tiny.TinyDocumentImpl.copy(TinyDocumentImpl.java:297)
	at net.sf.saxon.event.Sender.sendDocumentInfo(Sender.java:249)
	at net.sf.saxon.event.Sender.send(Sender.java:129)
	at com.saxonica.ee.schema.SchemaModelLoader.load(SchemaModelLoader.java:89)
	at com.saxonica.config.EnterpriseConfiguration.importComponents(EnterpriseConfiguration.java:960)
	at com.saxonica.config.EnterpriseConfiguration.addSchemaSource(EnterpriseConfiguration.java:688)
	... 16 more
Caused by: net.sf.saxon.type.SchemaException: Imported schema component model requires XSD version 1.1
	at com.saxonica.ee.schema.SchemaModelLoader$SchemaHandler.processElementStart(SchemaModelLoader.java:282)
	at com.saxonica.ee.schema.SchemaModelLoader.startContent(SchemaModelLoader.java:189)
	... 28 more
---------
net.sf.saxon.trans.XPathException: net.sf.saxon.type.SchemaException: Imported schema component model requires XSD version 1.1
	at com.saxonica.ee.schema.SchemaModelLoader.startContent(SchemaModelLoader.java:192)
	at net.sf.saxon.event.NamespaceReducer.startContent(NamespaceReducer.java:220)
	at net.sf.saxon.event.ProxyReceiver.startContent(ProxyReceiver.java:177)
	at net.sf.saxon.event.ProxyReceiver.startContent(ProxyReceiver.java:177)
	at net.sf.saxon.tree.tiny.TinyElementImpl.copy(TinyElementImpl.java:433)
	at net.sf.saxon.tree.tiny.TinyDocumentImpl.lambda$copy$0(TinyDocumentImpl.java:297)
	at net.sf.saxon.om.SequenceIterator.forEachOrFail(SequenceIterator.java:128)
	at net.sf.saxon.tree.tiny.TinyDocumentImpl.copy(TinyDocumentImpl.java:297)
	at net.sf.saxon.event.Sender.sendDocumentInfo(Sender.java:249)
	at net.sf.saxon.event.Sender.send(Sender.java:129)
	at com.saxonica.ee.schema.SchemaModelLoader.load(SchemaModelLoader.java:89)
	at com.saxonica.config.EnterpriseConfiguration.importComponents(EnterpriseConfiguration.java:960)
	at com.saxonica.config.EnterpriseConfiguration.addSchemaSource(EnterpriseConfiguration.java:688)
	at net.sf.saxon.Configuration.addSchemaSource(Configuration.java:3156)
	at net.sf.saxon.functions.AnalyzeStringFn.call(AnalyzeStringFn.java:107)
	at net.sf.saxon.functions.AnalyzeStringFn.call(AnalyzeStringFn.java:35)
	at net.sf.saxon.expr.FunctionCall.iterate(FunctionCall.java:532)
	at net.sf.saxon.expr.Expression.process(Expression.java:941)
	at net.sf.saxon.query.XQueryExpression.run(XQueryExpression.java:425)
	at ro.sync.xml.transformer.xquery.XQueryTransformer.runXQuery(XQueryTransformer.java:1215)
	at ro.sync.xml.transformer.xquery.XQueryTransformer.transform(XQueryTransformer.java:949)
	at ro.sync.xml.transformer.xquery.XQueryTransformerTest.testAnalyseStringEXM_39891(XQueryTransformerTest.java:150)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at junit.extensions.jfcunit.JFCTestCase$5.run(JFCTestCase.java:580)
	at junit.extensions.jfcunit.JFCTestCase$3.run(JFCTestCase.java:478)
	at java.lang.Thread.run(Thread.java:745)
Caused by: net.sf.saxon.type.SchemaException: Imported schema component model requires XSD version 1.1
	at com.saxonica.ee.schema.SchemaModelLoader$SchemaHandler.processElementStart(SchemaModelLoader.java:282)
	at com.saxonica.ee.schema.SchemaModelLoader.startContent(SchemaModelLoader.java:189)
	... 28 more
---------
net.sf.saxon.type.SchemaException: Imported schema component model requires XSD version 1.1
	at com.saxonica.ee.schema.SchemaModelLoader$SchemaHandler.processElementStart(SchemaModelLoader.java:282)
	at com.saxonica.ee.schema.SchemaModelLoader.startContent(SchemaModelLoader.java:189)
	at net.sf.saxon.event.NamespaceReducer.startContent(NamespaceReducer.java:220)
	at net.sf.saxon.event.ProxyReceiver.startContent(ProxyReceiver.java:177)
	at net.sf.saxon.event.ProxyReceiver.startContent(ProxyReceiver.java:177)
	at net.sf.saxon.tree.tiny.TinyElementImpl.copy(TinyElementImpl.java:433)
	at net.sf.saxon.tree.tiny.TinyDocumentImpl.lambda$copy$0(TinyDocumentImpl.java:297)
	at net.sf.saxon.om.SequenceIterator.forEachOrFail(SequenceIterator.java:128)
	at net.sf.saxon.tree.tiny.TinyDocumentImpl.copy(TinyDocumentImpl.java:297)
	at net.sf.saxon.event.Sender.sendDocumentInfo(Sender.java:249)
	at net.sf.saxon.event.Sender.send(Sender.java:129)
	at com.saxonica.ee.schema.SchemaModelLoader.load(SchemaModelLoader.java:89)
	at com.saxonica.config.EnterpriseConfiguration.importComponents(EnterpriseConfiguration.java:960)
	at com.saxonica.config.EnterpriseConfiguration.addSchemaSource(EnterpriseConfiguration.java:688)
	at net.sf.saxon.Configuration.addSchemaSource(Configuration.java:3156)
	at net.sf.saxon.functions.AnalyzeStringFn.call(AnalyzeStringFn.java:107)
	at net.sf.saxon.functions.AnalyzeStringFn.call(AnalyzeStringFn.java:35)
	at net.sf.saxon.expr.FunctionCall.iterate(FunctionCall.java:532)
	at net.sf.saxon.expr.Expression.process(Expression.java:941)
	at net.sf.saxon.query.XQueryExpression.run(XQueryExpression.java:425)
	at ro.sync.xml.transformer.xquery.XQueryTransformer.runXQuery(XQueryTransformer.java:1215)
	at ro.sync.xml.transformer.xquery.XQueryTransformer.transform(XQueryTransformer.java:949)
	at ro.sync.xml.transformer.xquery.XQueryTransformerTest.testAnalyseStringEXM_39891(XQueryTransformerTest.java:150)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at junit.extensions.jfcunit.JFCTestCase$5.run(JFCTestCase.java:580)
	at junit.extensions.jfcunit.JFCTestCase$3.run(JFCTestCase.java:478)
	at java.lang.Thread.run(Thread.java:745)
---------
net.sf.saxon.type.SchemaException: Imported schema component model requires XSD version 1.1
	at com.saxonica.ee.schema.SchemaModelLoader$SchemaHandler.processElementStart(SchemaModelLoader.java:282)
	at com.saxonica.ee.schema.SchemaModelLoader.startContent(SchemaModelLoader.java:189)
	at net.sf.saxon.event.NamespaceReducer.startContent(NamespaceReducer.java:220)
	at net.sf.saxon.event.ProxyReceiver.startContent(ProxyReceiver.java:177)
	at net.sf.saxon.event.ProxyReceiver.startContent(ProxyReceiver.java:177)
	at net.sf.saxon.tree.tiny.TinyElementImpl.copy(TinyElementImpl.java:433)
	at net.sf.saxon.tree.tiny.TinyDocumentImpl.lambda$copy$0(TinyDocumentImpl.java:297)
	at net.sf.saxon.om.SequenceIterator.forEachOrFail(SequenceIterator.java:128)
	at net.sf.saxon.tree.tiny.TinyDocumentImpl.copy(TinyDocumentImpl.java:297)
	at net.sf.saxon.event.Sender.sendDocumentInfo(Sender.java:249)
	at net.sf.saxon.event.Sender.send(Sender.java:129)
	at com.saxonica.ee.schema.SchemaModelLoader.load(SchemaModelLoader.java:89)
	at com.saxonica.config.EnterpriseConfiguration.importComponents(EnterpriseConfiguration.java:960)
	at com.saxonica.config.EnterpriseConfiguration.addSchemaSource(EnterpriseConfiguration.java:688)
	at net.sf.saxon.Configuration.addSchemaSource(Configuration.java:3156)
	at net.sf.saxon.functions.AnalyzeStringFn.call(AnalyzeStringFn.java:107)
	at net.sf.saxon.functions.AnalyzeStringFn.call(AnalyzeStringFn.java:35)
	at net.sf.saxon.expr.FunctionCall.iterate(FunctionCall.java:532)
	at net.sf.saxon.expr.Expression.process(Expression.java:941)
	at net.sf.saxon.query.XQueryExpression.run(XQueryExpression.java:425)
	at ro.sync.xml.transformer.xquery.XQueryTransformer.runXQuery(XQueryTransformer.java:1215)
	at ro.sync.xml.transformer.xquery.XQueryTransformer.transform(XQueryTransformer.java:949)
	at ro.sync.xml.transformer.xquery.XQueryTransformerTest.testAnalyseStringEXM_39891(XQueryTransformerTest.java:150)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at junit.extensions.jfcunit.JFCTestCase$5.run(JFCTestCase.java:580)
	at junit.extensions.jfcunit.JFCTestCase$3.run(JFCTestCase.java:478)
	at java.lang.Thread.run(Thread.java:745)


Please register to edit this issue

Also available in: Atom PDF