Actions
Bug #2731
closedUnknown configuration property http://saxon.sf.net/feature/occurrenceLimits
Start date:
2016-04-29
Due date:
% Done:
100%
Estimated time:
Legacy ID:
Applies to branch:
9.7, trunk
Fix Committed on Branch:
9.7, trunk
Fixed in Maintenance Release:
Platforms:
Description
Hello,
I tried to use the xsd/occurrenceLimits property in a SAXON configuration file wit Saxon-HE/9.6.0-5, as documented here:
http://www.saxonica.com/documentation9.6/index.html#!configuration/configuration-file/config-xsd
This fails with the following error when trying to load a SAXON processor with such file:
Warning: on line 109 column 23 of saxon.xml:
Invalid configuration property global/@occurrenceLimits. Supplied value '100,250'. Unknown
configuration property http://saxon.sf.net/feature/occurrenceLimits
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.RuntimeException: Error loading Saxon processor from configuration file at this location: saxon.xml
at test.XMLUtils.<clinit>(XMLUtils.java:74)
Caused by: net.sf.saxon.s9api.SaxonApiException: Invalid configuration property global/@occurrenceLimits. Supplied value '100,250'. Unknown configuration property http://saxon.sf.net/feature/occurrenceLimits
at net.sf.saxon.s9api.Processor.<init>(Processor.java:100)
at test.XMLUtils.<clinit>(XMLUtils.java:71)
Caused by: net.sf.saxon.trans.XPathException: Invalid configuration property global/@occurrenceLimits. Supplied value '100,250'. Unknown configuration property http://saxon.sf.net/feature/occurrenceLimits
at net.sf.saxon.trans.ConfigurationReader.error(ConfigurationReader.java:456)
at net.sf.saxon.trans.ConfigurationReader.applyProperty(ConfigurationReader.java:282)
at net.sf.saxon.trans.ConfigurationReader.readXsdElement(ConfigurationReader.java:445)
at net.sf.saxon.trans.ConfigurationReader.startElement(ConfigurationReader.java:176)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:506)
at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:353)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2717)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:607)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:489)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:835)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:568)
at net.sf.saxon.trans.ConfigurationReader.makeConfiguration(ConfigurationReader.java:96)
at net.sf.saxon.Configuration.readConfigurationFile(Configuration.java:323)
at net.sf.saxon.Configuration.readConfiguration(Configuration.java:311)
at net.sf.saxon.s9api.Processor.<init>(Processor.java:97)
... 1 more
Am I configuring the occurrenceLimits in a wrong way?
Below is the configuration file I'm using:
<?xml version="1.0"?>
<configuration
edition="HE"
xmlns="http://saxon.sf.net/ns/configuration"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://saxon.sf.net/ns/configuration config.xsd">
<global
dtdValidation="false"
dtdValidationRecoverable="true"
lineNumbering="true"
treeModel="tinyTree"
stripSpace="all"
expandAttributeDefaults="true"
versionOfXml="1.0"
preferJaxpParser="true"
sourceResolver=""
uriResolver="net.sf.saxon.lib.StandardURIResolver"
collectionUriResolver="net.sf.saxon.lib.StandardCollectionURIResolver"
defaultCollection="file:///e:/temp"
recognizeUriQueryParameters="true"
useTypedValueCache="false"
parser=""
timing="false"
allowExternalFunctions="false"
traceExternalFunctions="false"
optimizationLevel="10"
traceOptimizerDecisions="false"
collationUriResolver="net.sf.saxon.lib.StandardCollationURIResolver"
lazyConstructionMode="false"
preEvaluateDoc="false"
serializerFactory=""
errorListener="net.sf.saxon.lib.StandardErrorListener"
traceListener="net.sf.saxon.trace.XSLTTraceListener"
usePiDisableOutputEscaping="false"
validationWarnings="true" />
<serialization
method="xml"
indent="yes" />
<collations>
<collation
uri="http://codepoint/"
class="net.sf.saxon.expr.sort.CodepointCollator" />
<collation
uri="http://www.microsoft.com/collation/caseblind"
lang="en"
ignore-case="yes" />
</collations>
<localizations
defaultLanguage="en"
defaultCountry="US">
<localization
lang="da"
class="net.sf.saxon.option.local.Numberer_da" />
<localization
lang="de"
class="net.sf.saxon.option.local.Numberer_de" />
<localization
lang="en"
class="net.sf.saxon.expr.number.Numberer_en" />
<localization
lang="fr"
class="net.sf.saxon.option.local.Numberer_fr" />
<localization
lang="fr-BE"
class="net.sf.saxon.option.local.Numberer_frBE" />
<localization
lang="it"
class="net.sf.saxon.option.local.Numberer_it" />
<localization
lang="nl"
class="net.sf.saxon.option.local.Numberer_nl" />
<localization
lang="nl-BE"
class="net.sf.saxon.option.local.Numberer_nlBE" />
<localization
lang="sv"
class="net.sf.saxon.option.local.Numberer_sv" />
</localizations>
<xslt
recoveryPolicy="recoverWithWarnings"
version="2.0"
versionWarning="false"
schemaAware="false"
messageReceiver=""
errorListener="net.sf.saxon.StandardErrorListener"
outputUriResolver=""
stylesheetParser="">
</xslt>
<xquery
version="1.1"
allowUpdate="false"
errorListener="net.sf.saxon.StandardErrorListener"
moduleUriResolver="net.sf.saxon.lib.StandardModuleURIResolver"
inheritNamespaces="true"
preserveNamespaces="true"
constructionMode="preserve"
defaultFunctionNamespace="http://www.w3.org/2005/xpath-functions"
defaultElementNamespace=""
preserveBoundarySpace="false"
requiredContextItemType="document-node()"
emptyLeast="true" />
<xsd
occurrenceLimits="100,250"
version="1.1" />
</configuration>
Thanks for your help.
Regards,
Cyril
Please register to edit this issue
Actions